Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
50
Ultragrid column dropdown bind to list of strings
posted

Hi,

I've bound an Ultragrid column right now to a valuelist like so:

ValueList _myList = _myGrid.TheGrid.DisplayLayout.ValueLists.Add("MyList");
_myList.ValueListItems.AddRange(Enumerable.Select(_vm.Model.MyItems, al => new ValueListItem(al.ID, al.NAME)).ToArray());
_myList.TheGrid.DisplayLayout.Bands[0].Columns["MyListColumn"].ValueList = _myList;

However I'm only interested in the DisplayText/string part of the list.  While selecting and saving, I do NOT want it to automatically convert it to the underlying number.

Is there no way to bind the column to a simple list of strings?