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
590
XamWebGrid Child Level Sort
posted

I am using XamWebGrid v10.1 inside silverlight.  I am using column layout for Parent Child, but I want to sort only the child level.  I am hiding the headers at the child level.  Is there a way to only sort child level?  I am subscribing to the ColumnSorting, ColumnSorted events.  So when the user clicks on sort, I dont want the Parent level to sort at all, only the child level.  An example would be great.

  • 40030
    Offline posted

    Hi,

    Assuming you're using separate ColumnLayouts for each level, it should be pretty simple. 

    All you need to do is access the column. 

    this.grid.ColumnLayouts["ChildColumnLayoutKey"].Columns.DataColumns["ColKey"].IsSorted = SortDirection.Ascending;

    Hope this helps, 

    -SteveZ