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

distinct values in GridViewComboBoxColumn

3 Answers 240 Views
GridView
This is a migrated thread and some comments may be shown as answers.
steve
Top achievements
Rank 1
steve asked on 24 Nov 2009, 11:45 PM
I added GridViewComboBoxColumn per the help files. http://www.telerik.com/help/winforms/grid_gridviewcomboboxcolumn.html

What I am trying to figure out is how to make the values in the combobox distinct.  Is there a property or setting to do this or do I have to programmically remove all of the dups?

Thanks
Stephen

 

3 Answers, 1 is accepted

Sort by
0
steve
Top achievements
Rank 1
answered on 25 Nov 2009, 04:42 PM
I figured it out.  I am not sure if this is the proper way to handle this because it did slow down my app a little bit.  I created another sp that is fired when the column is created that returns only the values for that column.  Works well after the load but it did add 15 to 20 secs extra load time.

Stephen
0
Nikolay
Telerik team
answered on 30 Nov 2009, 03:24 PM
Hi steve,

We do not offer the desired behavior out of the box.

I am glad to hear that you managed to implement your requirements. Generally, the thing that you did is the correct one - making a stored procedure/method which returns a datasource containing only values which do not exist as values in the RadGridView datasource. If the implementation has a part concerning RadGridView, you can send us a sample project of it in a new support ticket. This will allow us to investigate it and recommend some optimizations if such are possible.

Sincerely yours,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
steve
Top achievements
Rank 1
answered on 30 Nov 2009, 05:29 PM
Will do, Nikolay.

Thanks
Tags
GridView
Asked by
steve
Top achievements
Rank 1
Answers by
steve
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or