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;
- }
- // if all row values in cbApp == true,
- //update quotation header
- }
- }
Thanks a lot.

Amit MohantyPosted Aug 26, 2019, 4:21 AM
Jes SiePosted Aug 27, 2019, 9:26 PM