Friday, January 16, 2009

Reading values from Gridview Item Templates

//write this coding in gridview1_RowUpdating event // Read the values from Text Box String name = ((TextBox)(gridview1.Rows[e.RowIndex].FindControl("NAME"))).Text; //Read the values from Label String ID = ((Label)(dgSummary.Rows[e.RowIndex].FindControl("ID"))).Text; //Read Html Check Box value boolean bol=((HtmlInputCheckBox)(gridview1.Rows[e.RowIndex].FindControl("CheckBox1"))).Checked

No comments:

Post a Comment