Binding a dataset to listview

  • Thread starter Thread starter Lasse Eskildsen
  • Start date Start date
L

Lasse Eskildsen

Hi,

Is there an easy way to load the content of a dataset into a listview with a
few columns?

Thanks!
 
Hi,

Sorry about that :o/

Is it possible to bind the listview, so that the entire dataset is added to
the listview?

I have made a loop, that runs through the dataset, adding every row to the
listview, but I'm not sure if it is the best way to do it.

Thanks for the help by the way :o)
 
Hi Lasse,

If you bind the dataset to the listview, you can also do updates from that
binding, that is normaly not posible with a listview (with a datasource).

Therefore I did give you the link (which makes it posible, but not in the
easy way)but as far as I know only the first item is editable and do not ask
how.

If you only want to load the listview to proces the items in it as let say
selection items like in windows explorer, than I think the way you are doing
it is fine
(And in the other situation I would first look for the datagrid, which is
more made for that)

Cor
 
Thanks for your help, vb.net can be quite tricky when moving from vb6, but I
think I'm getting the hang of it (mostly thanks to this group!)

Thanks again!
 
Back
Top