Hi,
I'm trying to synchonize scrolling of two grids, ContractProdGrid and ContractSuppliergrid,
by using the RowEnter event on one grid to control the other like this:
Private Sub ContractProdgrid_RowEnter(ByVal sender As Object, _
ByVal e As DataGridViewCellEventArgs) Handles ContractProdGrid.RowEnter
ContractSupplierGrid.CurrentCell = _
ContractSupplierGrid.Rows(ContractProdGrid.CurrentCell.RowIndex).Cells(1)
End Sub
But, when I start the application I get an NullReferenceException in this code,
what am I doing wrong
/cmkivio

Scroll-synchronizing two or more DataGridViews
Chris G.
-mark
Program Manager
Microsoft
This post is provided "as-is"
AndreaC
/cmkivio
Hassano21436
Anyway, I am using an unbound grid that is populated dynamically. Anyway, it seems that I made some things in wrong order so now the event is triggered as intended.
Thanks!
Mike Rousos
-mark
Program Manager
Microsoft
This post is provided "as-is"