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

Binding GridViewComboBox to an enum

2 Answers 89 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Chintan Shah
Top achievements
Rank 2
Chintan Shah asked on 09 Feb 2010, 07:54 AM
I am binding my grid to a web service which returns a order status enum. now i have to provide user a combo box in the same row as the order number in which i'll give him an option of --New,Confirmed,Canceled,Rejected-- but the problem is there is no way i can insert static values into combobox. so i need a way to bind my combobox to static values and bind its selectedMemberPath to enum.

2 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 11 Feb 2010, 04:04 PM
Hi Chintan Shah,

The attached sample demonstrates a way to bind the combo column to enumeration.

Greetings,
Pavel Pavlov
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
Chintan Shah
Top achievements
Rank 2
answered on 13 Feb 2010, 04:50 AM
Thank You Very Much this is exectly I was looking for.
Tags
GridView
Asked by
Chintan Shah
Top achievements
Rank 2
Answers by
Pavel Pavlov
Telerik team
Chintan Shah
Top achievements
Rank 2
Share this question
or