Hi, running the web2.0 skin with the newest radgrid. implemented the following code to remove the "Add new record" link:
protected void BackPackerListGrid_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridCommandItem)
{
GridCommandItem cmditm = (GridCommandItem)e.Item;
LinkButton lnkbtn1 = (LinkButton)cmditm.FindControl("InitInsertButton");
lnkbtn1.Visible = false;
}
}
however, the file icon is still there, which users can still click to add new records. I want to remove that icon as well. Please advise.
Damian
protected void BackPackerListGrid_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridCommandItem)
{
GridCommandItem cmditm = (GridCommandItem)e.Item;
LinkButton lnkbtn1 = (LinkButton)cmditm.FindControl("InitInsertButton");
lnkbtn1.Visible = false;
}
}
however, the file icon is still there, which users can still click to add new records. I want to remove that icon as well. Please advise.
Damian