scropio gurl

scropio gurl

  • NA
  • 147
  • 99.1k

disable dropdown when once approve/reject

Nov 6 2013 2:34 PM
when admin approve/reject any document once then when admin again login then he/she not be able to approve/reject documents again and dropdownlist will be disabled only for those documents which can be once approve/reject then when admin view any new documents then drop down will be enable and when admin approve/reject this document then it will be disable dropdownlist for not approve /reject again
for this i do this
code:
protected void OnRowDataBound
(object sender, GridViewRowEventArgs e
)

 {
 if (e.Row.RowType == DataControlRowType.DataRow
)
 {
//Find the DropDownList in the Row
 DropDownList abc = (e.Row.FindControl("DropDownList9") as DropDownList);
abc.Enabled = false; }
}

but this code show me all dropdownlist are disable .
any solution how i will do this?


Answers (20)