Permanent flag state

I have a web form that binds a DataGrid to a regular data source with every postback. I have a static CheckBox column that is always present to the left of auto-generated columns. I get the TabControl effect with a horizontal menu control above the grid, with each menu item being a tab containing a different grid.

Now I would like to save the state of these flags for a specific tab when another tab is selected. I would welcome any creative solution for this without using session variables.

+3
source share
1 answer

I think the best choice for this is to have a different gridview for each of your β€œtabs”. Use a MultiView control with a View control for each tab and a gridview in each view. In the click event of your menu, change the correct view. Just snap each view of the grid once, and then your flags are saved.

+3
source

Source: https://habr.com/ru/post/1697129/


All Articles