Hello guys I need your help again.
I have a gridview and one column has a boolean value. Now, If all rows in that column equals to TRUE, I will do my stuff.
- protected void gvQuotationDetails_RowDataBound(object sender, GridViewRowEventArgs e)
- {
- if(e.Row.RowType == DataControlRowType.DataRow)
- {
- CheckBox cbNego = (CheckBox)e.Row.FindControl("cbNegotiate");
- CheckBox cbApp = (CheckBox)e.Row.FindControl("cbApprove");
-
- if (cbNego.Checked)
- {
- cbNego.Enabled = false;
- }
-
- if (cbApp.Checked)
- {
- cbApp.Enabled = false;
- cbNego.Enabled = false;
- }
-
-
-
- }
- }
Thanks a lot.