When ever i drop down a list the first time it seems to work. this is usually on some error in the data that is validated whenever the grid looses focus. i an using the following code.
grid.Focus();
cell.Activate();
cell.EditorResolved.DropDown();
I have also tried the following as well with the same result
UltraGridCell cell = grid.Rows[i].Cells["Relation"];
grid.PerformAction(
both work the first time, after that it only selects the cell, and doesn't drop down the editor. I am using version 6.2, so if this was a known issue, and has been corrected in a new version, and an upgrade will fix it great or if i need to do something else, that would be great too.
Some more background info that may be helpful is as follows:
1. Code is implemented with in the grid leave event.
2. i loop though the rows to find the row with a listItem that matches my business object.
3. the dropdown is of a business enum type.
4. I do not have any datatype issues with the enum, all selection and updating works propertly.
My guess is that it's the DoEvents that is messing it up. I avoid DoEvents whenever possible, as it is very unreliable and can lead to all sorts of unexpeted behaviors. I can't see any reason why you would need a DoEvents here, anyway, but if you do need to institute some sort of delay, then I would recommend calling BeginInvoke instead of using DoEvents.
Thans for the post.. that help me!!