AD
Administrator
Syncfusion Team
June 4, 2004 08:08 PM UTC
I will have to check to see whether the typeconverter attribute should be picked up by our grid.
One way you can do this is create a DataTable with 2 columns, DisplayMember and ValueMember (or create an arraylist of objects where the object have properties DisplaMember and ValueMember). For the displaymember, use the text you want to see. For the valuemember, set the integer value. You can then set
GridStyleInfo style = this.grid.Binder.InternalColumns["Col1"].StyleInfo;
style.DataSource = MyDataTable; //or arraylist
style.DisplayMember = "DisplayMember";
style.ValueMember = "ValueMember";
style.ShowButtons = GridShowButtons.Hide;