mercredi 19 juillet 2017

c#- Save checked checkbox in DataGridView

I have DataGridView with CheckBox Column, its DataSource load from DataBase MS SQL.

There are 2 Button A and B:

  • When click on Button A, the DataSource = Data of Table A.
  • When click on Button B, the DataSource = Data of Table B.

I want: when click on Button A and Select some CheckBoxes on DataGridView.

After that, click on Button B then save CheckBoxes are Checked before.

Ex: I click on Button A and Select 5 CheckBoxes. After that, I click on Button B and when I click on Button A again then 5 CheckBoxes are automatically Checked.

Can any one help me to do that?

Thanks everone so much for reading!




Aucun commentaire:

Enregistrer un commentaire