{
// sort the active field descending
if (tableView.CanSortDescending)
tableView.SortDescending();
// sort the active field ascending
if (tableView.CanSortAscending)
tableView.SortAscending();
// perform a custom sort programmatically
if (tableView.CanCustomSort)
{
// sort fields
Dictionary<string, FieldSortInfo> dict = new()
{
{ "STATE_NAME", FieldSortInfo.Asc },
{ "CITY_NAME", FieldSortInfo.Desc }
};
tableView.SortAsync(dict);
}
// perform a custom sort via the UI
if (tableView.CanCustomSort)
tableView.CustomSort();
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)