SortExpressions[0].SortOrder is Always 'Ascending'

1 posts, 0 answers
  1. Darius
    Darius avatar
    15 posts
    Member since:
    Nov 2017

    Posted 04 May 2018 Link to this post


    I need to get the sortorder of the Grid in _NeedDataSource even and nowhere else. However the SortOrder value is always 'Ascending'. How do you get the updated sort order ? I have code below. Thank you.


    protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
    string name = RadGrid1.MasterTableView.SortExpressions[0].FieldName;
                        GridSortOrder order = RadGrid1.MasterTableView.SortExpressions[0].SortOrder;
Back to Top