ListView

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i need to bind data in runtime to a Listview
i need to create two columns each one have a data from a certain table
how to attach the data to the listviewItem
?
and show the colunm header
i need a sample code
thanx
 
ListView doesn't have a DataSource property.
Use DataGrid.
(I'm not saying it isn't possible, just DataGrid is more convinient with
data sources)
 
Tota,

Because of the fact that only the first Item (column in detailview) is
editable, you can in my opinion as well use the datareader and just fill it.

When you than want to change the content of that first item by a change of
the user (it is very hard to do for a user) than I would just create an
update using the command.executenonquery

When you want all columns editable, than see the answer from Amiram what I
fully agree.

Just my thought,

Cor
 
Back
Top