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

How do we filter data in certain rows in a bound gridviewcombobox column?

2 Answers 50 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Norbert John
Top achievements
Rank 1
Norbert John asked on 20 Aug 2010, 11:46 AM
Hello,

I have a radgridview with a gridviewcombobox column which is bound to a collection. So all the rows in that particular column will show the entries in the collection. In the first row of that column, I want to filter the collection. i.e for the first row i want to display only 'yes' in the combobox were as in the rest of the rows I want to display 'yes','no','none'. Is there any way to filter only certain rows in a bound gridviewcombobox column.

Please help.


Thanks in Advance,
Norbert John

2 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 20 Aug 2010, 03:49 PM
Hello Norbert John,

Following up your scenario, I may suggest you a couple of possibilities. Firstly and most commonly used is to change the Header of that column and to put a CheckBox inside. Thus once it is checked, the column will be enabled/disabled. 
The second workaround is to insert a CheckBox inside the first row of that column during the RowLoaded event and again when it is checked to enable the column. 
Lastly, you may set a different ItemsSource for the first row of the column. 
However, I would recommend the first possibility. 
 

All the best,
Maya
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
0
Norbert John
Top achievements
Rank 1
answered on 27 Aug 2010, 05:47 AM
Hello Maya,

THe second approach suggested by you worked.
Here is the solution : http://www.telerik.com/community/forums/wpf/gridview/adding-checkbox-to-a-gridview-combo-box-column.aspx


Thanks and Reagrds,
Norbert John
Tags
GridView
Asked by
Norbert John
Top achievements
Rank 1
Answers by
Maya
Telerik team
Norbert John
Top achievements
Rank 1
Share this question
or