AD
Administrator
Syncfusion Team
November 16, 2006 07:31 PM UTC
Hi Fady,
We appreciate your kindly patience. This can be achieved by handling the TopRowChanged event and changing the TopRowIndex property of grid 2. Please refer to the following code snippet for details.
>>>>>>>>>>>>>>>><<<<<<<<<<<<
void gridControl1_TopRowChanged(object sender, GridRowColIndexChangedEventArgs e)
{
Synchronize_TopRowChanged(gridControl2, gridControl1, e);
}
void Synchronize_TopRowChanged(GridControl targetGrid, GridControl sourceGrid, GridRowColIndexChangedEventArgs e)
{
if (inTopRowChangedEvent)
return;
inTopRowChangedEvent = true;
try
{
targetGrid.TopRowIndex = sourceGrid.TopRowIndex;
}
finally
{
inTopRowChangedEvent = false;
}
}
>>>>>>>>>>>>>>>><<<<<<<<<<<<
Please refer to the following KB article for more details
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=351
Have a nice time.
Best regards,
Madhan