We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set FieldType as ENUM?

Thread ID:





122099 Feb 17,2016 08:21 AM UTC Feb 18,2016 10:55 AM UTC WinForms 2
Tags: GridGroupingControl
Asked On February 17, 2016 08:21 AM UTC

I have set the datasouce, and one columntype is enum, but it doesn't work? How to resolve it?

Replied On February 17, 2016 11:43 PM UTC

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
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

Pavithra Kodiyarasan [Syncfusion]
Replied On February 18, 2016 10:55 AM UTC

Hi Yanghao,

Thanks for contacting syncfusion support.

By analyzing your given image and problem we thought that you set PropertyGrid to all columns DropDown cells. That’s why the enum columntype was not working. Please refer the following sample.


If your requirement is different from this, Please let us know with clear explanation.

Pavithra K.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon