mercredi 16 mars 2016

Add datagrid checkbox after query result and condition

I would like to implement this situation :

after a query result ...

I have 4 column ... last column is a bool value in db ( approved / not approved) .

In my datagridview for this field, i want show a checkbox (in this datagridview column) :

If( queryResult is approved ) 
          show combobox with selcted (with check,verified symbol) not editable..
otherwise 
          show a empty checkbox but editable... 

and intercept row on event click in checkbox... for execute new query and change value to not approved -> approved.

please help me ..Im going through hard times..




Aucun commentaire:

Enregistrer un commentaire