Hello,
I have a winGrid with an UltraOptionSet as the EditorControl for certain rows. When I select an option in one of the controls, and then click on another row, it appears as though the Option set no longer has a value selected. However, if i get the value of that cell, it does appear to know the value, even though it does not look like one is selected. Am I missing something here, how do I get the control to keep the selected option selected when moving to other rows in the grid?
In that case, using object makes sense. :)
Mike,
Thanks for your response. Actually, each row may have a different editor control based on information in that row, so I am using the generic object type so it can handle any information from each control.
The best thing to do is to make sure that the column's DataType matches up with the type for the Value property on the OptionSet items. So if you are setting the Value on each item in the OptionSet at design-time, then be sure to pick the data type from the dropdown list. If you are setting them at run-time, the make sure you are passing them in as the correct type.
After looking at samples from Infragistics, I found that when I am creating the column that houses this option set, to set its type to object and then everything works fine.