I would like to have a "ReadOnly" grid, meaning that I can select, add new (enabled ShowInsertRow) and delete rows but I should not be able to edit cells. If I just set the IsReadOnly = true it locks the whole grid.
1 Answer, 1 is accepted
answered on 23 Jun 2010, 06:05 PM
You can subscribe to the BeginningEdit event as shown below:
if (this.RadGridView1.Items.CurrentAddItem != e.Row.Item)
e.Cancel = true;
This will ensure that you can edit only if a new item is added. In all the other case, editing will be canceled.
Furthermore, when defining the event this way, both selection and deletion are possible.
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?
Telerik Public Issue Tracking
system and vote to affect the priority of the items