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
210
Save "Field Chooser" selection
posted

Hi,

In the UltraWinGrid Feature Picker, i have selected "Row Selector Header Style=Display Column Chooser Button" and Row Selectors=Default Behavior.

For example: We have grid columns as follows:

ID       Name      Age            DOB            Location

Suppose, In the column Chooser, If i remove Age, DOB columns, these 2 columns are removed from the Ultragrid. I want to save these grid columns for user.

I want to display only the following 3 columns in the UltraGrid, when the user relogins.

ID               Name                   Location

Can you share the sample code on how to  save the Column selections made by the user in "Field Chooser"?.  The selection is saved for the user, but can be changed by the user at any time.

Regards,

Ramakrishna

 

Parents
No Data
Reply
  • 69832
    Offline posted

    The column chooser simply toggles the column's Hidden property. I would think using UltraGrid.DisplayLayout.Save and including the 'Bands' category would persist the state of the column, including its visible state.

Children