Groups | Blog | Home
all groups > asp.net > march 2004 >

asp.net : ListBox / Table?



Mickey Williams
3/30/2004 2:00:06 PM
Don't use a listbox for data layout in columns.

If you need to databind then
If you need to sort on arbitrary columns then
use a datagrid
else
use a datalist
end if
else
use a table
end if


--
Mickey Williams
Author, "Microsoft Visual C# .NET Core Reference", MS Press
http://www.servergeek.com

Jeff S
3/30/2004 3:37:28 PM
Of course you can also place a table in the <ItemTemplate> of a DataList and
bind the DataList - in which case you get multiple instances of the table
for which any contained controls can be bound blah blah blah...

This will offer a bit more perspective
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbcondisplayinglistsusingwebcontrols.asp





[quoted text, click to view]

Mike
3/30/2004 11:37:01 PM

Hi,

Is there a chance to show various columns in a ListBox control, =
something like a ListView in VB6? Or should I use a table web control =
instead?

Thanks
AddThis Social Bookmark Button