AD
Administrator
Syncfusion Team
April 16, 2004 04:58 AM UTC
I assume the Gender column in the grid''s DataSource is also of type EGender, correct?
If so, try also setting;
gridDataBoundGrid1.Binder.InternalColumns["Gender"].StyleInfo.CellValueType = typeof(EGender);
AD
Administrator
Syncfusion Team
April 18, 2004 09:53 AM UTC
thank u very much!
I have already added gridDataBoundGrid1.Binder.InternalColumns["Gender"].StyleInfo.CellValueType = typeof(EGender); to my code, it does not work either, I add a Breakpoint at the
PropertyDescriptor.SetValueSetValue(
object component,
object value
); Method
the value is a Int32 type object which value is 1 or 2, is the value passed by GridDataBoundGrid?If I don''t construct a DataSource for the "Gender" Column, the value will be a EGender type and the value will be {EGender.Man} or {EGender.Woman}
(PS:My program returns a custom class named MyPropertyDescriptor : PropertyDescriptor collentcion in ITypedList.GetItemProperties Method, so I can watch the value passed by Grid)
please help me...
thanks...