Click to See Complete Forum and Search --> : Scrolling datagrids problem


intermario_gr
August 24th, 2007, 02:05 PM
Hello,

I have a DataGrid in an application of mine which is populated with numbers from a dataset. This datagrid's matrix is quite big to fit into my form so it's scrollable.

I will add a second DataGrid exactly below the first one that will have the same number of columns and only ONE ROW. Columns will have the same width as the first DataGrid. NOW let's get to my problem...

What I want is those two datagrids (which will have the same width as mentioned) to scroll together, simultaneously in the horizontal dimension. In other words, I want the second datagrid to scroll as if it were actually a part of the first datagrid.

BTW I've noticed a HScrollBar control in VS2005, will that do the trick? Has anybody used it?

Thanks.