Hi Jawed,
Thanks for using Syncfusion products.
You requirement can be achieved by converting the Enum
values into the IEnumerable list values and passed the string data’s into the
grid. Please refer to the following code snippets:
public List<SelectListItem> InvestigationList
{
get
{
var data =
Enum.GetValues(typeof(InvestigationActionType)).Cast<InvestigationActionType>().Select(v
=> new SelectListItem
{
Text = v.ToString(),
// if you would like to display the integer values in Grid , we can return
value as Value = (int(v)).ToString()
Value = v.ToString()
}).ToList();
return data;
}
}
For your convince, we have created the sample and the same
can be downloaded from below link.
Sample.zip
Please let us know if you have any concerns.
Regards,