Okay, it's late, I didn't realize this was posted in the
windowsforms ng. Phew.
If you're using the 2005 version, you can put a binding source
between your data source (dataset) and your grid (datagridview).
Dim nwData as CustomersDataSet = CustomersDataSet.GetCustomers()
m_CustomersGrid.DataSource = m_CustomersBindingSource
m_CustomersBindingSource.DataSource = nwData.Customers
When you want to change your data source, change the datasource
that is bound to the Binding Source, and the grid will
change automatically. THe binding source is like the glue
between the data source and the grid.
That's my theory, anyway.
Robin S.
-------------------------------------
> 1) Are you using the 2003 or 2005 version of VB/C#?
> 2) Windows Forms or Webforms?
[quoted text clipped - 27 lines]
>>
>> Any help is appreciated.
AboutJAV@gmail.com - 12 Jan 2007 16:26 GMT
Thanks RobinS,
I forgot to add
Grid.DataBind(DataSet);
after the associating DataSource.
Thanks.
> Okay, it's late, I didn't realize this was posted in the
> windowsforms ng. Phew.
[quoted text clipped - 46 lines]
> >>
> >> Any help is appreciated.