By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,234 Members | 1,869 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,234 IT Pros & Developers. It's quick & easy.

Binding a dataset to listview

P: n/a
Hi,

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

Thanks!

--
Lasse
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Cor
Hi Lasse,

The subject of your message is binding, the text is loading, there is a big
difference between those 2.

What is it?

This is a topic from adventures in Visual Basic net, I never used it

http://msdn.microsoft.com/library/de...et08262002.asp

Cor

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

Nov 20 '05 #2

P: n/a
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)

--
Lasse

Cor wrote:
Hi Lasse,

The subject of your message is binding, the text is loading, there is
a big difference between those 2.

What is it?

This is a topic from adventures in Visual Basic net, I never used it

http://msdn.microsoft.com/library/de...et08262002.asp
Cor

Nov 20 '05 #3

P: n/a
Cor
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

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)

Nov 20 '05 #4

P: n/a
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!

--
Lasse

Cor wrote:
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)

Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.