Customizing the DataGridView for each user
I have a Windows Forms Application in 2.0 that uses a DataGridView. We have a new requirement to customize the DataGridView for each user, i.e. which columns should be displayed, the column order and column sizes will be stored by the users in the template. The template will be stored in the database against the user. When the user launches the form, they should see the data grid view according to the template they have defined.
Thus, user A will see the columns of data in the order specified in the Age section, while user B will see the columns Occupation Salary Name
I would like to know what would be the best approach to achieve this?
a source to share
If you know how many columns there are:
-
Create tables with user ID.
and. Table 1 - Boolean value for each column (should be displayed).
b. Table 2 - int for each column with relative ordering.
from. Table 3 - int for each column width -
Extract custom settings and set columns to visible, ordering, and widths accordingly.
-
Save changes to the exit event settings.
a source to share