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

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).
 
C

Cor Ligthert [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top