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
60
Accessibility issue: how to sort on ultragrid column via keys
posted

With UltraGrid, is there a way to use key board only to do the sorting (as if column header sort is clicked via mouse)?

Parents
No Data
Reply
  • 2155
    Offline posted

    Hello Vivien,

    You should be able to sort UltraGrid column programmatically using UltraGridColumn's SortIndicator property
    as illustrated in the following document.

    Sorting Overview
    https://es.infragistics.com/help/winforms/wingrid-sorting-overview

    If you wish to prevent the grid from sorting when a column header is clicked, you can set UltraGrid.DisplayLayout.Override.HeaderClickAction to Select.

    I have created a sample application for your reference.
    In this sample, a column that contains an active cell gets sorted in ascending order when 'A' key is pressed, and it gets sorted in descending order when 'D' key is pressed.

    Let me know if I may be of further assistance.3108.WindowsFormsApplication1.zip

    Thank you,
    Mihoko Kamiishi

Children