Jump to content

Save Status Show/Hide Columns in TUniDBGrid


OdontonetEs

Recommended Posts

Good morning. I have the following problem. When I hide certain columns from a TUniDBgrid control I can save the indexes of said columns in a cookie, but when I open the application again and read the data from the saved cookie, I can no longer use the ajax event to show or hide other columns. This happens once I use the property uniDbGrid.columns[x].visible := false when starting

Link to comment
Share on other sites

image.png.422d4fe32747e2d5442b44e212ece24f.png

1- At client side runtime I use this context menu to hide the columns.

2- When the form/frame is destroyed I save the indexes of the hidden columns in a cookie.

3- When it starts again, they read the cookie and according to the hidden index the column with the property grid.columns[innex].visible := false. So far so good

The problem is that when I want to go to point 1 again to hide or show columns, it does not work correctly, it seems that in point 3 I am missing something from an ajax call from the grid

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...