Programatically determine current sort order of radgrid

2 posts, 1 answers
  1. Kermit
    Kermit avatar
    20 posts
    Member since:
    Jan 2012

    Posted 30 Oct 2012 Link to this post

    Is there a way to determine the current sort order of a radgrid, or do I have to keep track of it myself whenever a column header is clicked?
  2. Answer
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 31 Oct 2012 Link to this post


    You can set the sort order programmatically as follows.

    protected void Page_Load(object sender, EventArgs e)
        GridSortExpression ge = new GridSortExpression();
        ge.FieldName = "OrderID";
        ge.SortOrder = GridSortOrder.Descending;

  3. DevCraft R3 2016 release webinar banner
Back to Top