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
490
Dynamically Show/Hide columns
posted

Hi all, 

I have a grid that exists in 2 states (read-write and read-only).  The user can toggle between these 2 at any time and the code needs to show/hide the editable columns based upon this event.

 Currently, the code does this:

    Grid.DisplayLayout.Bands[ 0 ].Columns[ property.Name ].Hidden = !ReadWrite;

  which "works" but seems to have some very strange layout behaviors.  The columns will show-hide, but their position seems to shift and the remaining columns are also different widths after the operation.  Is there anyway to get the columns to show-hide IN PLACE without affecting any other columns?

Thanks for your help,

Parents Reply Children
No Data