Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
880
Is it possible to only show the Row Selector once when you have multiple Column Scroll Regions?
posted

I have a grid with two column scroll regions and Row Selectors enabled. However, I only want the Row Selectors to appear in the first scroll region (this would also ensure that he column chooser icon was only displayed once).

I've tried turning off Row Selectors using the following code but it removes them for the whole grid:

MyGrid.DisplayLayout.ColScrollRegions(1).Layout.Override.RowSelectors = DefaultableBoolean.False

Is there any way of removing the Row Selectors for a single Column Scroll Region?

I've also had some strange behaviour with fixed columns since adding a 2nd column scroll region. I have the first few columns in the grid set to fixed in the designer (with the push pin icon shown in the column header).

At run-time with 2 column scroll regions none of the columns are fixed (including the row selectors) and the push pin icons are not shown. If I manually close the scroll region and then create it again then all of a sudden the columns are now fixed and the push pins are shown.

I'm creating the 2nd column scrolling region in the designer if that helps.

Thanks,

John.

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi John, 

    The Layout property on the ColScrollRegion is a backward pointer.

    So these are the same thing:

    MyGrid.DisplayLayout.ColScrollRegions(1).Layout = MyGrid.DisplayLayout

    There is currently no way to make the RowSelectors exclusive to one ColScrollRegion. You should Submit a feature request to Infragistics.

    henderjj said:
    At run-time with 2 column scroll regions none of the columns are fixed (including the row selectors) and the push pin icons are not shown. If I manually close the scroll region and then create it again then all of a sudden the columns are now fixed and the push pins are shown.

    I'm not sure if the two features (ColScrollRegions and Fixed columns) were ever intended to be used together at the same time. The Fixed Columns feature was intended to replace ColScrollRegions in a much more Excel-like way.

    Having said that, I tried this out by creating a new project and setting UseFixedHeaders to true. I fixed a column of columns by clicking on the pin button in the column header and then created a ColScrollRegion by dragging the splitter bar. When I run the application, it works just fine for me.

    What version of the controls are you using? I'm using v10.3 with the latest service release.

     

Children