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

[Solved] Strategy for deleting rows

1 Answer 122 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.
Michael
Top achievements
Rank 1
Michael asked on 20 Sep 2010, 08:42 PM
What is a the recommended way to delete rows from the RadGridView?  I could add a button to each row that when clicked will delete that particular row or I could work with the RadContextMenu.  I don't really have a preference although the button added to each row would be easier for unexperienced users.

Can someone provide a brief example of how to add a button column to each row?

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 21 Sep 2010, 06:21 AM
Hi Michael,

RadGridView has built-in logic for item deletion which is invoked when the Delete key is pressed. Provided that you collection supports deletion (the collection is IList for example) all selected items will be deleted when Delete is pressed 

Alternatively, you can use a button column and invoke our Delete command as demonstrate in this demo.


Best wishes,
Milan
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
Michael
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or