Home All Groups Group Topic Archive Search About

DataTable or DataSet for Updating Data?

Author
5 Jan 2006 10:46 PM
Mike Wilson
I have a heirarchical set of data that I need to read into a DataGrid. I'm
using SQL in the TableAdapter portion of the main table in the DataSet to
retrieve a set of rows which I bind to my DataGrid.

Should I bind a DataSet or a DataTable to the DataGrid? Which is the best
design choice, given the grid needs to be able to be edited and for the
changes to propogate to all the tables.

Thanks in advance for the n00bish question, I will get the hang of ADO.NET
eventually and might one day be helping you guys out :-)

Thanks,

Mike

Author
6 Jan 2006 10:21 AM
Cor Ligthert [MVP]
Mike,

Those application have mostly the name Master Detail (to make it able to
search for you for it)

Here is *one* of the samples about that on our website.
(I see now that we don't use that Master Detail but relations)

http://www.vb-tips.com/default.aspx?ID=3eafa9ea-a906-45ff-aece-e8335682ad3a

I hope this helps,

Cor
Author
7 Jan 2006 3:46 AM
Mike
"Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
news:uoY9urqEGHA.2912@tk2msftngp13.phx.gbl...
> Mike,
>
> Those application have mostly the name Master Detail (to make it able to
> search for you for it)
>
> Here is *one* of the samples about that on our website.
> (I see now that we don't use that Master Detail but relations)
>
> http://www.vb-tips.com/default.aspx?ID=3eafa9ea-a906-45ff-aece-e8335682ad3a
>
> I hope this helps,

Thank, you - that's helpful, but for now I was looking for something more
design-time oriented.

Warm Regards,

Mike
Author
7 Jan 2006 6:40 AM
W.G. Ryan
Mike wrote:
Show quote
> "Cor Ligthert [MVP]" <notmyfirstn***@planet.nl> wrote in message
> news:uoY9urqEGHA.2912@tk2msftngp13.phx.gbl...
>
>>Mike,
>>
>>Those application have mostly the name Master Detail (to make it able to
>>search for you for it)
>>
>>Here is *one* of the samples about that on our website.
>>(I see now that we don't use that Master Detail but relations)
>>
>>http://www.vb-tips.com/default.aspx?ID=3eafa9ea-a906-45ff-aece-e8335682ad3a
>>
>>I hope this helps,
>
>
> Thank, you - that's helpful, but for now I was looking for something more
> design-time oriented.
>
> Warm Regards,
>
> Mike
>
>
Mike, what specifically are you looking for?
Author
7 Jan 2006 1:19 PM
Mike
"W.G. Ryan" <WilliamRyan@nospam.gmail.com> wrote in message
news:ehc9cV1EGHA.2320@TK2MSFTNGP11.phx.gbl...

> Mike, what specifically are you looking for?

Specifically an example of a working
DataSource<->BindingSource<->BindingNavigator form where the DataSource
contains multiple tables and relations (mostly lookup tables).

Shouldn't be too hard, but I'm stuck on two issues:

1. My current code doesn't save changes to the database

2. If I have a table (say "Customer") which has many foreign keys to other
tables (say "Customer_Type"), and I want to look up the "Customer_Type"
value for a dropdown list - do you know of any good examples for this?

Thanks in advance. I appreciate your help.

Mike

AddThis Social Bookmark Button