datagridview using c#
-
how can i find the checkbox is checked or not..... present inside the datagridview... send me sample coding..
-
how can i find the checkbox is checked or not..... present inside the datagridview... send me sample coding..
Checkbox must be in some ItemTemplatefield in gridview.It must be server side.Get the control by its ID in cs file and find whether it is checked or not.
Cheers!! Brij
-
Checkbox must be in some ItemTemplatefield in gridview.It must be server side.Get the control by its ID in cs file and find whether it is checked or not.
Cheers!! Brij
sorry
-
how can i find the checkbox is checked or not..... present inside the datagridview... send me sample coding..
Refer Below snippet bool bflag; checkbox chk=-(checkbox)datagridview1.cell[2].findcontrol("checkbox1"); bflag=chk.checked; find the checkbox control in the gridview in the particular cell. Now as per above code the chk is your control name.You can use the chk.checked property for your purpose. Regards, Suyash