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.
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