Hii, If you have set AutoGenerateEditColumn of RadGrid to true
Now under such condition You need to hide auto generate column to False.So you can do it on item dat bound
protected void RadGrid3_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem editItem = (GridDataItem)e.Item;
((LinkButton)editItem["AutoGeneratedEditColumn"].Controls[0]).Visible = false;
}
}
Now under such condition You need to hide auto generate column to False.So you can do it on item dat bound
protected void RadGrid3_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem editItem = (GridDataItem)e.Item;
((LinkButton)editItem["AutoGeneratedEditColumn"].Controls[0]).Visible = false;
}
}
No comments:
Post a Comment