Hello,
I have to export data from a RadGrid to Excel, but I want to hide the other icons, but I can not hide the separator, as I can do?
thanks
I have to export data from a RadGrid to Excel, but I want to hide the other icons, but I can not hide the separator, as I can do?
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridCommandItem)
{
GridCommandItem cmditm = (GridCommandItem)e.Item;
//to hide AddNewRecord button
cmditm.FindControl("InitInsertButton").Visible = false;//hide the text
cmditm.FindControl("AddNewRecordButton").Visible = false;//hide the image
//to hide Refresh button
cmditm.FindControl("RefreshButton").Visible = false;//hide the text
cmditm.FindControl("RebindGridButton").Visible = false;//hide the image
// cmditm.FindControl("Separator").Visible = false;
thanks