public bool TryGetSorting(out int columnIndex, out SortOrder order) { columnIndex = ColumnIndex.GetValueOrDefault(); order = Order.GetValueOrDefault(); return(HasSorting); }