Posted 8 September 2017, 3:12 pm ESTIs it possible to allow sort on childview of a hierarchial grid in FarPoint spread.
Sort ChildView on Hierarchial grid
Posted by: warrants on 8 September 2017, 3:12 pm EST
Replied 8 September 2017, 3:12 pm ESTHello,
You can call the SortRows method of the SheetView class in the ChildViewCreated event, to sort the rows in the child view. Here is the code for the same:
void fpSpread1_ChildViewCreated(object sender, FarPoint.Win.Spread.ChildViewCreatedEventArgs e)
e.SheetView.SortRows(0, true, true);
e.SheetView.SortRows(0, false, true);
Hope it helps.
Replied 8 September 2017, 3:12 pm ESTCan we allow user to sort the rows in the child view after the child view is displayed to the user.
Replied 8 September 2017, 3:12 pm ESTHi,
Sure, you can also call SetColumnAllowAutoSort and/or AutoSortColumn in the code for handling the ChildViewCreated event.
More info about SetColumnAllowAutoSort is here:
More info about AutoSortColumn is here: