-1
I need to save the color changes the user makes on the datagrid.
Currently the colors are exchanged according to the user’s selection using the following code:
dgv1.CurrentRow.DefaultCellStyle.BackColor = Color.Red; //Troca a cor da linha para vermelho
but if any form reset happens, the datagrid returns to the default color (white).
Is there any way to save these changes and load them at the time of the datagrid load?