jeudi 15 février 2018

Filter GridView through TextBox without loosing the checkBox inside the grid in c#

i have this problem about DataGridView with checkbox inside. i populate the gridview by using a data table and pass it to the binding source. enter image description here

the problem starts here when i search on the textbox, all the checkbox become unchecked. enter image description here

here is my code in filtering the grid using textbox

BindingSource bs;
bs.Filter = string.Format("NAME LIKE '%{0}%'", txtSearch.Text);




Aucun commentaire:

Enregistrer un commentaire