Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
210
How to create dropdown column autonatically through data source
posted

I have a class with three property

Class MyTest

{

String MySting {get; set;}

Bool MyBool {get; set;}

DateTime MyDateTime{get; set;}

SampleType MyType{get; set} //SampleType is a enum

}

 

Now I create myCollection with 5 MyTest objects. Then I call ultraGrid1.DataSource = myCollection;

I run the program and I can see that the column related to MyBool property is correctly shown as a CheckBox in the cell, and MyDateTime is shown correctly as DateTime control in the cell.

MyType property is shown as string in the cell, but I expect it to be a dropdown ComboBox in the cell abd populated the comboBox with enum items. How can I realize it?