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
40
how to maintain state of the Expanded Rows
posted

I have .Net Advantage for .Net 2008 vol 2 CLR 2.0 package.
In the package am using Infragistics wingrid.
Just i want to know how can we mentain the state of the Expanded Rows.
so that after refreshing the grid rows will not collapse rows.

i.e. We have wingrid that contains 2 Bands.
Parent Band (Band-0) is read only whereas child band(Band - 1) can be modified.
After modification in the grid when we clicked on the saved button grid is refreshed
and all the expanded rows of child band (Band-1) get collapse. which we don't want.
We want the Rows expanded before refreshing the grid should be as it was.

Please tell us solution and if Infragistics provides api to do this.

  • 469350
    Verified Answer
    Offline posted

     What exactly are you doing when you say "refreshing the grid?"

    If you are losing the expanded state of the rows, it usually means you are doing something destructive that is causing your data source to send a Reset notification to the grid. This forces the grid to throw away everything and recreate a whole new set of rows based on the data, so there's no way the grid can maintain any state information, since the rows that the states applied to are now gone.