DataGridWindow configuration - 'Tag Grid Settings:'

Hi.

Can someone please outline the intended use of the ‘Tag Grid Settings:’ field within DataGridWindow configuration. I haven’t been able to find it anywhere in the documentation. All or most other fields are briefly outlined under ‘Displays and Symbols->User Controls’ … but ‘Tag Grid Settings:’ appears to have been overlooked.

I’m hoping it may offer some control over the default DataGridWindow settings :slight_smile:

Regards,
Greg Shearer

Hi Greg,

This field is used to save the user’s grid configuration. Once saved, it can be loaded into the Grid after a shutdown, for example. These configurations include columns, filters, ordering, column visibility, and any other settings that a user can adjust through the interface.

To use this option, you can follow the steps below:

1 - Create a string tag set up as retentive. This allows recovery of the string value after a shutdown.

2- Fill the Tag Grid Settings field with the retentive tag.

3 - In your Code Behind, enter the following C# code to save or load the configuration from the tag:

Code to save:
TDataGridWindow grid = CurrentDisplay.GetDataGrid();

grid.SaveGridSettings();

Code to Load:
TDataGridWindow grid = CurrentDisplay.GetDataGrid();

grid.LoadGridSettings()

Within the method CurrentDisplay.GetDataGrid(), use the Control Name of your DataGridWindow Configuration.

If you want to view details about the settings being saved, place the tag value into a TextBox.

Best regards,
Gabriel Caetano.