I have two RadGrids on the same page. They have the same list of people in both grids, just with different information in each. When I scroll one grid, I want to make sure that I scroll the other one to the same person. They are the same height. I have implemented two scroll events in the form's OnLoad:
this.gv1.GridElement.VScrollBar.Scroll += new ScrollEventHandler(gv1_VScrollBar_Scroll);
this
.gv2.GridElement.VScrollBar.Scroll += new ScrollEventHandler(gv2_VScrollBar_Scroll);
And then I have:
void gv1_VScrollBar_Scroll(object sender, ScrollEventArgs e)
{
gv2.GridElement.VScrollBar.Value = e.NewValue;
}
void gv2_VScrollBar_Scroll(object sender, ScrollEventArgs e)
{
gv1.GridElement.VScrollBar.Value = e.NewValue;
}
Here's the problem. It works for gv1. The event never even fires for gv2. If I comment out the functioning one, the other still doesn't work. Off the top of my head, the only difference I can come up with is that gv2 is heirarchical. Any thoughts?
Thanks,
Dan