how to add columns in listbox

Afroze3

New member
Joined
Sep 13, 2007
Messages
3
Programming Experience
1-3
hi all

how to add columns to listbox and how to assign values to each cell in listbox at runtime

can any one help in this issue?

Thanks & Regards
Oersla Afroze Ahmed
 
Listbox only support a single data column, the MultiColumn property just toggles an alternate display style for that data ("to make vertical scrolling unnecessary").

ListView and DataGridView controls support multiple data columns.
 
hi

thanks for replying

1)is listview is available in ASP.NET?

2)can you please tell how to add columns and rows to Datagridview and assign value to each cell at runtime?

Regards,
Oersla Afroze Ahmed
 
1. You should ask in ASP.NET section if you wonder about ASP.NET. This forum is for Windows Forms.

2. Just use the designer to add the columns, unbound usage depends on the input data flow, for example you can dynamically add rows with Rows.Add or set a RowCount and use Item(column,row).Value, even for unbound you perhaps want to use setup a local DataTable. Here is a started for DataGridView control. We also a Winforms Grids forum with much info about this control.
 
Back
Top