This is a migrated thread and some comments may be shown as answers.

[Solved] disabling/hide delete button in radgrid

1 Answer 337 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Surjit Singh
Top achievements
Rank 1
Surjit Singh asked on 10 Feb 2010, 12:20 PM
Dear Telerik Team

I need a small help regarding disabling/hide delete button in radgrid in all rows except the first row.

Please assist me in this

thanks and regards

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 10 Feb 2010, 12:39 PM
Hello Surjit,

Please try the following approach:
protected void MyDealGrid_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridEditableItem && e.Item.ItemIndex != 0)
        (e.Item as GridEditableItem)["myDeleteColumn"].Controls[0].Visible = false;
}

I hope this helps.

Best regards,
Daniel
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Grid
Asked by
Surjit Singh
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or