how to set the same datatable as the data source for two separate datagrids in a form

  • Thread starter Thread starter LeAnne
  • Start date Start date
L

LeAnne

I have a single datatable in a form, and two datagrids.
I'd like to display the data in the datatable in both the grids.

How ever, when i navigate (change the record position) in one grid, this
effects the position in the other one as well.
How can i overcome this using the SAME datatable (i don't want to clone or
create another data table).
 
LeAnne,

Just create two different dataviews from it.

dim dv1 as new dataview(myDataTable)
dim dv2 as new dataview(myDataTable)

I hope this helps,

Cor
 
Back
Top