Hello ,
Thank you for your feedback. I am glade to here that my suggestion helps you.
Thank you for using Infragistics Components.
thank you Hristo.
based on your suggest I have spended an EnumType and an overriden Value property to my subclassed UltraComboEditor. Now I'm able to render all flagged enum types.
Hello,
Conversation which you want to do is a little complicate because when UltraComboEditor is managed to MultiSelect, it returns as value List<object>. However what I could suggest you is to is first to generate two methods. Fist one could convert single int to Enum flag:
List<object> ConvertIntToE(int i, UltraComboEditor combo)
{
E es = (E)i;
Notify("Value");
return Enum.GetValues(typeof(E)).Cast<E>().Where(v => es.HasFlag(v)).Cast<object>().ToList<object>();
}
The second method should convert UltraComboEditor value to single int:
int ConvertComboVlaueToInt()
List<object> l = (List<object>)ultraComboEditor1.Value;
if (l == null)
return 0;
int res = 0;
foreach (object o in l)
res += (int)o;
return res;
So I have implement my idea in a user control , and have used UltraContinerEditor for editor of UltraGrid. Please see attached sample. More information about UltraContinerEditor you could find on the following link:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.1/CLR2.0/html/WinControlContainerEditor_Understanding_WinControlContainerEditor.html
http://help.infragistics.com/Help/NetAdvantage/WinForms/2012.1/CLR2.0/html/WinControlContainerEditor_Using_WinControlContainerEditor.html
I hope that this will helps you.