Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
885
Read Cells From UltraCombo.SelectedRow Editor Component At Initialization
posted

I have a grid column with an UltraCombo as the editor component.

The UltraCombo translates a stored ID into a human readable description.

I would like to read ActivitiesUltraDropDown.SelectedRow.Cells(2).Value and put that into an unbound column in the grid. I can make this work on the TextChanged event of the UltraCombo, but that event won't fire unless the user makes a change to the UltraCombo. I need an event to do this during grid load when the data is just loading, not changing.

I need a clue as to which event I could use when;

  • the data is all loaded into the grid (underlying ID's)
  • the UltraCombo has positioned itself on its row corresponding to the ID
  • each row in the UltraGrid is being iteratively selected
Parents
  • 885
    Verified Answer
    Offline posted

    I decided to take a different approach, because it seems that the UltraDropDown doesn't have a selected row yet at the time I'd like to read it.

    I wrote a little function that makes a datatable out of the same bindingsource that the UltraDropDown is bound to and does a find on it to return the value I want, then put it in the InitializeRow event.

    Also put the same function into the AfterCellUpdate event for when values change ...

Reply Children
No Data