Are there any non data bound controls left?

C

cr113

I'm trying to convert a windows app to ASP.NET using VS2005. I have
some web experience, but not much. 99% of the time if I need to
display data in a table in my windows apps I use a ListView object and
populate it manually using code like this:

ListView1.Items.Add("Jones")
ListView1.Items(ListView1.Items.Count - 1).SubItems.Add("123")

The result of this code would be a row added to the ListView like
this:

Jones 123


I have had terrible luck with data bound objects. I hate not having
manual control. There always seems to be a case where a simple SQL
statement is not enough to populate my ListView object (crazy users
maybe?). Am I the only one who likes populating list objects manually?

Anyway here's my question. I'm wondering if there is an ASP.NET
control in VS2005 that works similar to the ListView object (found in
VS2005 Windows Application) and will allow me to manually populate the
list without data binding. Maybe the GridView or the DataList?
 
B

bruce barker

see HtmlTable class, for generics solution. you can also just build a
datatable on the fly or use the ObjectDataSource to map to your own object.


-- bruce (sqlwork.com)
 
A

Andrew Faust

You could always manually create a data set that matches the criteria you
need and then bind to that.
 
C

cr113

You could always manually create a data set that matches the criteria you
need and then bind to that.


That sounds promising. I was wondering if you could do that.

Thanks!

Chuck.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top