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

Deleting rows from a grid by selecting checkbox

1 Answer 93 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Harshal
Top achievements
Rank 1
Harshal asked on 13 Apr 2011, 09:14 AM
Hello
I am using WPF Radgrid
I have a requirement of deleting multiple rows from a grid whose checkbox column is selected.
I am using MVVM Pattern and MVVM light sample where we are using EventToCommand appraoch is being followed.

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 13 Apr 2011, 09:42 AM
Hi Harshal,

 
You may predefine the CellTemplate of GridViewDataColumn, place a single CheckBox in it and implement your custom command behavior, as demonstrated at the following article. You also need to expose a SelectedItem property of the ViewModel, which you can pass as a CommandParameter to the CheckBox.
You may take a look at the following forum thread for further info.


Kind regards,
Vanya Pavlova
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
Harshal
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or