I added gridView to web page and dataSource is table stored in database
I I have cloumn in table of database type bit
so in gridView convert this coulm to templateFeild
then i make some change in this feild
-autopostback=true
-enable=true
and I want when user chech the checkbox change the value in databse
I have tried the following to get the datakey of gridView
Expand|Select|Wrap|Line Numbers
- protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
- {
- System.Web.UI.WebControls.GridViewCommandEventArgs Erg = (System.Web.UI.WebControls.GridViewCommandEventArgs)e;
- Response.Write(Erg.ToString());
- Response.Write (String)Erg.CommandName);
- }
?????
any suggestion