I have set the datatable columntype as enum as follows:
private DataTable dtTitle = new DataTable();
gridTitle.DataSource = dtTitle;
dtTitle.Columns.Add("Visible", typeof(bool));
dtTitle.Columns.Add("Position", typeof(Position)); //Position is ENUM
dtTitle.Columns.Add("Content", typeof(string));
dtTitle.Columns.Add("Color", typeof(Color));
dtTitle.Columns.Add("Font", typeof(Font));
dtTitle.Columns.Add("Margin", typeof(Padding));
#region Control Position
[TypeConverter(typeof(ExpandableObjectConverter))]
public enum Position : byte
{
Top = 0,
Bottom = 1,
Left = 2,
Right = 3
}
But the GGC shows as attachfile, how to set it? Thank you!
Attachment:
GGC_3a38e60f.rar