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
380
How to change DropDownButton symbol
posted

Hello,

I'm using UltraGrid and one column has

.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;

And I want to change DropDownButton symbol to ellipsis.

How can I do it?

 

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi,

    There's no property for this.

    You could do it with a DrawFilter or a CreationFilter. But it would depend on a number of factors. By default, the dropdown button is drawn using theming. So the Windows Theming API draws the entire button and you can't change a small part, like the DropDown arrow,without drawing the whole thing yourself.

    If you don't mind turning off themes for the grid or the column, then you could use a DrawFilter and just handle the BeforeDrawForeground phase to cancel the drawing of the default arrow and use GDI+ to draw a string ("..."), instead.

Reply Children