Private void changtextcouldedit ()
{
Foreach (maid)
{
Textbox txtmaterialid = (textbox) DGI. findcontrol ("txtmaterialid ");
Textbox txttaxedunitprice = (textbox) DGI. findcontrol ("lbltaxedunitprice ");
Textbox txttax = (textbox) DGI. findcontrol ("lbltax ");
Htmlinputhidden hdnmaterialclassid = (htmlinputhidden) DGI. findcontrol ("hdnmaterialclassid ");
If (txtmaterialid. Text. Trim ()! = "" & Hdnmaterialclassid. value = 2)
{
Txttaxedunitprice. attributes ["contenteditable"] = "true ";
Txttaxedunitprice. attributes ["style"] = "width: 100px ;";
Txttaxedunitprice. attributes ["class"] = "input2 ";
}
Else
{
Txttaxedunitprice. attributes ["contenteditable"] = "false ";
Txttaxedunitprice. attributes ["style"] = "background-color: transparent; text-align: Right; border-style: none; width: 100px ;";
Txttaxedunitprice. attributes ["classname"] = "";
}
}
}