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
335
Scroll UltraDropDown row into view
posted

I am using an UltraDropDown control in conjunction with an UltraDateTimeEditor.  I have filled the drop down with times from 12:00 AM to 11:45 PM and when the user drops it down I need it to select the appropriate row and scroll it to the top of the list.  Currently I have successfully found the index of the row and selected it, but I can't figure out how to get that row to be scrolled to the top of the list.  So far it always drops down starting at 12 AM and I have to scroll way down to find the row that is currently selected.  Any suggestions?

  • 335
    posted

    An interesting issue you have there, here let me see if I can help.  I think if you can find the UltraGridRow that needs to be selected (which it sounds like you do) you can call row.Activate() and then row.Selected = true.  This should bring the row into view and select it.  I hope this helps.