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
570
RpwLayout w/ Multiple Rows
posted

Hi,

    Has anyone familiar with using RowLayouts been able to set up the layouts so that a DataTable with multiple rows displays all rows for some groups but only one row for others?

The row layout I currently have is:

|-------Account---------||-------Capital--------||-------Ratio--------|

{can have multiple rows here}

|---------------------------------Current (Group)----------------------|

|-------Symbol--------| {should be one value}

|-------Price-----------| {should be one value}

|-------Shares--------| {should be one value}

The top section (Account, Capital, Ratio) can have multiple entries. The second section is a vertical section (i.e should only have one value adjacent to the label).

It seems to me that this is not possible, every time a new row is added to the datatable the entire row layout is copied and a new row is added.

Were it not for the fact that I'm trying to mimic an application that can already do this particular thing, I would think it truly is impossible. I'm pretty sure the system that I'm trying to clone was built on an infragistics platform so it must be possible one way or another. In the attached file it appears as though the developer is using one UltraGrid to create the pinned dockpanel on the left (I say that b/c the 1st column divider can be moved and all of the columns on the left resize accordingly (Account,  Symbol, Price, Shares).

It is possible that this is really 2 grids stacked on top of one another... If so, is there some sort of container that can resize the columns on multiple grids (Perhaps the UltraGridBagLayoutPanel?)

Parents
  • 469350
    Verified Answer
    Offline posted

    I'm not entirely sure, but it looks to me like there are 3 grids stacked one atop the other here.

    My guess is that the the column sizing is handled using the AfterColPosChanged event so that when a column is sized in any one grid, the other grids are updated programmatically.

    There's no way to have different layout in different rows of the same band of a single grid. You can hide a cell (or multiple cells) in any given row of the grid. But a hidden cell just doesn't paint - there will still be a gap where that cell was. The grid cannot reclaim the empty space.

Reply Children
No Data