Can I bind a generic list objects to a UltraGridColumn.ValueList.DataSource? The object is a generic object contains fields mapped from database table. Here is my code snippet.
{
public string Description { get; set; }
Code = code;
Description = Description;
Others = others;
}
***** The app ***
list.Add( new ListData("a", "Code A", "Other A") );
list.Add( new ListData("c", "Code C", "Other C") );
UltraGridColumn col = new UltraGridColumn();
col.ValueList.DataSource = list;
col.ValueList.ValueMember = "Code";
Of course, this does not work. That is reason why I am using Reflection to populate the ValueListItems now. However, I would love to bind the list objects directly to the dropdownlist column to gain the speed and cleaner code. Am I missing anyting during the column binding?
This post is answered in this post https://es.infragistics.com/community/forums/f/ultimate-ui-for-wpf/46684/how-to-not-show-value-in-the-editor-is-not-valid-when-field-type-is-xamdatetimeeditor-of-xamdatagrid#46684