I'm using Ultradropdown for the valuelist some columns of my UltraGrid. I'm also setting the EditorControl to UltraComboEditor for some other columns. The DisplayMember and ValueMember properties of the UltraDropDown and UltraComboEditor have been set correctly. When the form loads, the grid shows the values in the ValueMember in these cells. When I simply hover the mouse over these cells, the grid corrects itself to show the values of the DisplayMember. The grid behaves correctly when I click on a dropdown. It shows me the values in the displaymember. Can someone tell me why the grid defaults to the values in the ValueMember instead of DisplayMember when it loads?
There are a number of possibilities. One is that something is wrong with the Data types. Perhaps the DataType of the ValueMember field in the list doesn't match the datatype of the grid column.
Another possibility is that there's some sort of timing problem in the order in which you are applying the data sources of the grid and the dropdowns.
Mke, thanks for your response. I found the source of the problem. Thought I'll post what resolved the issue in case it helps anyone. If you have a better way of doing it, please suggest... One thing I find about Infragistics controls is that they have too many properties and events and its tough to choose what to use... and what would be the best way of doing something...
I have a ultragrid which has columns called CategoryID, SubcategoryID and EventID (in addition to other columns). I show the Category Name, the Subcategory Name and the Event Name and not the ID's during display in the grid. The valuelists for these columns are set to Ultradropdown or a ComboEditor. The values in the dropdown for SubcategoryID and EventID are dependent on the CategoryID chosen for that row. I use the ultraGrid1_BeforeCellListDropDown event to populate the datasource for subcategories and events when that cell is clicked. What was happening was that the rows that had a category other than the active row were losing the display for Subcategory Name and Event Name as the datasource for the drop down list was now only a subset for the category of the active row. What I am doing now is that in the ultraGrid1_AfterCellListCloseUp event, I'm resetting the datasource for the dropdownlists to all the subcategories and events. This has resolved the issue.