Hello;
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=tr ue
-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
[code=c]
protected void CheckBox1_Check edChanged(objec t sender, EventArgs e)
{
System.Web.UI.W ebControls.Grid ViewCommandEven tArgs Erg = (System.Web.UI. WebControls.Gri dViewCommandEve ntArgs)e;
Response.Write( Erg.ToString()) ;
Response.Write (String)Erg.Com mandName);
}
[/code]
but nothing change in web page posting without reuslt
?????
any suggestion
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=tr ue
-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
[code=c]
protected void CheckBox1_Check edChanged(objec t sender, EventArgs e)
{
System.Web.UI.W ebControls.Grid ViewCommandEven tArgs Erg = (System.Web.UI. WebControls.Gri dViewCommandEve ntArgs)e;
Response.Write( Erg.ToString()) ;
Response.Write (String)Erg.Com mandName);
}
[/code]
but nothing change in web page posting without reuslt
?????
any suggestion
Comment