ComboBox and TypeConverter ?

May 17, 2010 at 2:38 PM

Hi,

I made an DataGrid with a comboBox column and tried to add an TypeConverter

 

SourceGrid.Cells.Editors.ComboBox comboBoxPercent = new SourceGrid.Cells.Editors.ComboBox(typeof(int));
comboBoxPercent.AllowNull = false;
comboBoxPercent.StandardValues = new int[] { 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 };
comboBoxPercent.Control.DropDownStyle = ComboBoxStyle.DropDownList;
//comboBoxPercent.TypeConverter = new DevAge.ComponentModel.Converter.NumberTypeConverter(typeof(int), "0'%'");

when I use the TypeConverter my combobox dropdown list is empty when I comment it out it shows up.

Where is my fault?

Greetz Neo