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
340
How to force dropdown to open
posted

I have a form with several grids on it.  One of the grids contains a column  with a columnstyle = dropdown.  If the user tries to enter data in to any of the grids and the above mentioned column is empty then I want to place focus on that column, enter edit mode, and force the dropdown to open for the user to select a value.

Here is what I am using so far:

ugGridHeader.Focus()
ugGridHeader.Rows(0).Cells("KEYVALUE").Activate()
ugGridHeader.PerformAction(UltraGridAction.ExitEditMode)

The real problem at this point is I don't know how to force the dropdown to open.  Any ideas??

Thanks.  Bill

 

 

 

  • 469350
    Suggested Answer
    Offline posted

    Hi Bill,

    I think you meant to use EnterEditMode, not ExitEditMode. But in any case, the action you really want is UltraGridAction.EnterEditModeAndDropdown.