enum in WebGrid as dropdownlist

2 replies. Last post: April 30, 2010 9:48 AM by a a
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
a aMember

Hi

I have a webgrid bound to an ObjectDataSource which returns my business entities. In these objects I have enums which are displayed with their int value in the WebGrid column.

enum MyEnum
{
A = 0,
B = 1,
.
.
}


Is there a way to have a dropdown in the column that has the string representation as text ("A", "B", ...) and the int value as value. and which allows to add a new row including the correct transformation to the enum?


thank you

All times are GMT -5. The time now is 3:31 AM.
Previous Next