checkbox gridview
-
I am working on this problem a couple of days, I did not get solution. in my web page , there is a gridview with a checkbox templatefield I need to know if checkbox is checked, I use following way, Even though I saw the checkbox is checked, I get checkbox.check is false. protected void Button1_Click(object sender, EventArgs e) { string EmpId=""; //bool chkBox=false ; foreach (GridViewRow row in GridView1.Rows) //for(int row=0;row", EmpId); } }
-
I am working on this problem a couple of days, I did not get solution. in my web page , there is a gridview with a checkbox templatefield I need to know if checkbox is checked, I use following way, Even though I saw the checkbox is checked, I get checkbox.check is false. protected void Button1_Click(object sender, EventArgs e) { string EmpId=""; //bool chkBox=false ; foreach (GridViewRow row in GridView1.Rows) //for(int row=0;row", EmpId); } }
Post ur code properly.
-
Post ur code properly.
-
Check Ignore HTML tags in this message (good for code snippets) Check box and paste HTML code Best Regard Pathan
---------------------------------------------------
-
I am working on this problem a couple of days, I did not get solution. in my web page , there is a gridview with a checkbox templatefield I need to know if checkbox is checked, I use following way, Even though I saw the checkbox is checked, I get checkbox.check is false. protected void Button1_Click(object sender, EventArgs e) { string EmpId=""; //bool chkBox=false ; foreach (GridViewRow row in GridView1.Rows) //for(int row=0;row", EmpId); } }
hai, try this one, CheckBox chkbox = new CheckBox(); foreach(DataGridItem item in gridsearch.Items ) { chkbox=(CheckBox)item.FindControl("chkbox"); if(chkbox.Checked) { //if its true code here// } } Regards vidya
pain gives gain