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

First Grid row should not be editable

1 Answer 51 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Srini
Top achievements
Rank 1
Srini asked on 23 Oct 2010, 05:06 PM
Hi,

I want to restrict the first row of my grid from editing all other rows can be editable..

Is there is any way to do this?

Cheers,
Srini

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 25 Oct 2010, 08:48 AM
Hello Srini,

You may handle the BeginningEdit event and cancel it for the items you want to be read-only. For example:

private void clubsGrid_BeginningEdit(object sender, GridViewBeginningEditRoutedEventArgs e)
{
    if(e.Row.Item == this.clubsGrid.Items[0])
    {
        e.Cancel = true;
    }
}

 

All the best,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Srini
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or