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
520
DropDown on Column Header UltraGrid
posted

Hi 

Is there any way I can have dropdown with my own list on column header?

if it is possible then please give me sample how to do that.

Thanks

  • 469350
    Suggested Answer
    Offline posted

    Hi Rubie,

    There's no built-in dropdowns for column headers, except for the column swap dropdown. If you want your own custom dropdown, then the easier way to handle it would be to use a ContextMenu when the user right-clicks on the header.

    If you need more than that, like a button or a dropdown arrow in the header, then you would have to use a CreationFilter to add the button and it would require a lot more code. The dropdown itself could be handled by using PopupControlContainer component which allows you to place any control you want in a dropdown. So you could use a ListView to simulate a dropdown.