Skip to main content

Sort grid

Comments

1 comment

  • Dapfor Team

    Hello,
    Try the following:

    foreach(Column column in grid.Headers[0])
    {
        //Prevent the user from sort changing
        column.Sortable = false;
    }

    //Set sorting programmatically
    grid.Headers[0].Column["Price"].SortDirection = SortDirection.Ascending;

    King regards,
    Dapfor

    0

Please sign in to leave a comment.

Powered by Zendesk