﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - dropdown</title><link>http://www.intersoftsolutions.com/Community/Tags/dropdown/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>enum in WebGrid as dropdownlist</title><link>http://www.intersoftsolutions.com/Community/Tags/dropdown/</link><pubDate>Tue, 27 Apr 2010 05:41:32 GMT</pubDate><dc:creator>FabianoM</dc:creator><category>WebGrid</category><category>enum</category><category>dropdown</category><description>&lt;p&gt;Hi&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;&lt;pre&gt;enum MyEnum&lt;br /&gt;{&lt;br /&gt;A = 0,&lt;br /&gt;B = 1,&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;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?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;thank you&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>