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
125
Making multiple ultra grids act together as one ultra grid
posted

Hi,

I am trying to figure out a way to make 3 separate ultra grids act as one. 

The three grids are stacked vertically and they all have the same columns, but they all draw data from different data sources. What I'm currently trying to do is make all the column widths update to the same size in all three grids whenever the column widths are adjusted by dragging the columns at run time.

If I can get some sample code on how to do this, that would be great.

Parents
  • 23930
    Offline posted

    Hi Tatiana,

    Thank you for posting in our forums.

    What you could do in order to implement this is to handle the BeforeColPosChanged event, which is raised when a user moves, resizes or hides a column. In that event you can transfer the change to all the grids. This way you can synchronize the sizes and positions of the columns.

    I have attached a small sample which demonstrates how to implement this. Note that it relies on all the grids having the same band keys and same column captions.

    Let me know if you have any additional questions.

    WG_SyncMultipleGrids.zip
Reply Children