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
drop down in ultra grid
posted

Hi,

  how can I change the color of active row while mouse hovering in drop down of ultra grid.

 I am creating drop down at run time .

plz help

thanks in advance

Parents
  • 69832
    Suggested Answer
    Offline posted

    You can change the color (or any of the visual attributes) of the ActiveRow by using the UltraGrid.DisplayLayout.Override.ActiveRowAppearance. However, there is no way to know whether the mouse is hovering over the dropdown using only properties of the public object model. If it happens to be a ValueListDropDown control (which is displayed by the standard EditorWithCombo when you use a ValueList), you could probably handle the MouseHover event of that control and set the appearance accordingly. An alternative approach would be to set/modify the ActiveRowAppearance in the BeforeCellListDropDown event (and clear the settings in the AfterCellListCloseUp event). This would require much less code, the disadvantage however being that the appearance will be different when the dropdown is visible, and not only when the mouse hovers over it as you stipulated here.

Reply Children