Hello,
I have questions regarding rwo scroll regions.
I have one grid where in I want to split the grid into two halves and display active rows on top and inactive one on bottom section (bottom section is preferable grayed out).
I am trying to achieve this with rowscrollregions but seems the different regions display same rows in each section.
Is there a better way to do what I am trying to do. I don;t want to use two separate grids I think it should be doable in one grid.
Any help is appreciated.
Thanks
What you can do is handle the AfterColPosChanged event of each grid and then set the properties of the column(s) in the other grid to match. You will want to match up the column.Header.VisiblePosition, and the column.Width.
Using two grids is probably an acceptable solution.
We don't want to show the column headers for the bottom grid. Assumption is it is the same grid just has inactive rows separated by a separator. So this brings up column resizing q's
1> Is there a way to link up the column resizing in one grid with the other
2> Also if the column order in the active grid changes we have to change the column order in the inactive grid
We might have to design a way in which column resize events are linked up artificially
Any help is appreciated
Hi,
I don't beleive this is possible with scroll regions. As you wrote, the RowScrollRegions will both show the same set of rows.
My advice would be to use two grids. You could separate your data into two separate tables and put some rows in one grid and others in the other grid.
Another option would be to bind both grids to the same DataSource and simply use the InitializeRow event to hide the rows that you don't want the user to see in each grid.