krupini
asked on
How to select a specific cell in DataGridView
I have two DataGridViews side by side with the same number of rows and columns. They connect to untyped DataSets. When I select a specific sell in the left DataGridView, I want the same cell to be selected in the right DataGridView. How do I go about doing that?
Thanks!
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Nicks way would be better indeed you probably can't just assign currentcells over gridviews :)))
didn't test that getting a bit tired over here ;)
didn't test that getting a bit tired over here ;)
----------
in the cell content click event you can get the dgv.CurrentCell object
http://msdn2.microsoft.com/en-us/library/system.windows.forms.datagridview.currentcell.aspx
which would be something along the lines of
this.dataGridView2.Current
----------
bruintje
share what you know, learn what you don't