protected void gvBranch_RowCreated(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.Header)
AddSortDirectionImage(gvBranch, e.Row);
else
if (e.Row.RowType == DataControlRowType.DataRow)//.Footer)&&(e.Row.RowType != DataControlRowType.EmptyDataRow))
if (Session["UType"].ToString() != "SuperAdmin")
{
ibtnED = (ImageButton)e.Row.FindControl("ibtnEdit");
ibtnED.Enabled = false;
ibtnDel = (ImageButton)e.Row.FindControl("ibtnDelete");
ibtnDel.Enabled = false;
}
}
Monday, September 20, 2010
/****** Eneble false a gridview image field *********/
Posted by
codeguru
at
11:14 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment