How to save selected fields in a C#Checklistbox?

Asked

Viewed 112 times

0

My program contains two CheckListBox: the chkLstBoxTabela contains the tables of my comic book and the chkLstBoxColunas contains the columns of the table selected in chkLstBoxTabela, so that when we select a table its columns are displayed.

I need when I select another table to save the selected columns from the previous table. It would be possible to do this?

  • It is possible, but in order for us to guide you correctly, we need you to put the code developed until then in the body of your question. Could you edit it, please?

  • You can do it using Session.

  • It’s not a good idea to use the Session for this kind of thing. Remember that it takes up space on the server.

1 answer

0


Thanks for the suggestions. I solved the problem by creating a flag in my column class so that when I mark a column of chkLstBoxColunas it arrow the flag to true. When I load chkLstBoxColunas I check the flag and mark the fields already selected.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.