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

[Solved] GridView.Items.CanCancelEdit property

2 Answers 121 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David A.
Top achievements
Rank 1
David A. asked on 05 Jan 2011, 01:24 PM
Hi.  I am managing the editing of a gridview in a RadWindow and am stuck when trying to "cancel" an edit. This always throws an error and the GridView.Items.CanCancelEdit property is false.  The Source is ObservableCollection<T> and I am able to add, delete, etc. but I cannot cancel an edit operation.  Any idea why?

2 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 05 Jan 2011, 04:59 PM
Hi David,

 
You can Cancel edit of any row any time before RowEditEnded event (RowValidating and RowValidated events). Could you please send us a sample project via support ticket which we can debug on our side? 
On the other hand why not set IsReadOnly property of RadGridView to True.

All the best,
Vanya Pavlova
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
David A.
Top achievements
Rank 1
answered on 06 Jan 2011, 05:06 PM
Thank you.  This information led me to the solution.  I needed to set Items.EditItem(Items.CurrentItem) before editing. 

 

Tags
GridView
Asked by
David A.
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
David A.
Top achievements
Rank 1
Share this question
or