mardi 31 mars 2015

Adding checkbox to a row in GridView that changes a database value when checked

I have a GridView with 5 columns, each row represents an entry in PayTable. I want to convert the 5th column, which is the Status column, into a checkbox column to represent active/inactive. Checked means active and unchecked means inactive.


Now the reason I was wondering how to get the checkbox to change the value in my PayTable was so that I could store the Status so when called again I can show the proper status of the entry. I was thinking a basic 1=checked, 0=unchecked kind of thing or a true/false thing.


Is this possible ( if so then how ) or is there a better way to do this?


Kind of like this enter image description here





Aucun commentaire:

Enregistrer un commentaire