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

How to show only selected rows in GridView

4 Answers 276 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hector
Top achievements
Rank 1
Hector asked on 09 Jun 2009, 06:24 PM
I'm in search of a way to only show selected rows in the GridView.  I have tried the FieldFilterDescription but that only works on fields; is there a way to implement this with the IsSelected property of a Record?

Thanks

4 Answers, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 10 Jun 2009, 08:11 AM
Hi Hector,

I'm sending you a simple example which handles your scenario. It consists of two grids. First one is databound as usual, and the second one is bound to the selected items in the first grid. Please find it in the attached file.

Hope this helps.

Kind regards,
Stefan Dobrev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Hector
Top achievements
Rank 1
answered on 10 Jun 2009, 12:10 PM
This is great, thank you.  However, this requires two Gridviews.  What I need is the ability to hide unselected rows or show all rows when the user clicks on an option.  I have a ComboBox with Show all, Show selected, Show Unselected as options.  Your sample gives me a good start, thank you very much.
0
Madhan
Top achievements
Rank 1
answered on 02 Mar 2012, 10:54 AM
Hi,

I also need to implement the same in our case, Selected row should be placed in another RadGridView.
Attached example looks ok. But I need to achive it in WPF. Is it possible to do the same?

Please give the suggestion or solution to achive it using WPF RadGridView.

Thanks,
0
Vlad
Telerik team
answered on 02 Mar 2012, 10:56 AM
Hello,

 You can check this demo for more info. The same is available in your local copy of our WPF demos. 

Greetings,
Vlad
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
GridView
Asked by
Hector
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Hector
Top achievements
Rank 1
Madhan
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or