A behavior that support sort and resize. Once created cannot be modified. When calculated automatically the range to sort is all the grid range without the rows minor of the current row and the range header is all the grid range with the rows minor or equal of the current row
Inheritance: ControllerBase
Exemple #1
0
 /// <summary>
 /// Sort the column
 /// </summary>
 /// <param name="ascending"></param>
 public void Sort(bool ascending)
 {
     Controllers.SortableHeader sortableHeader = (Controllers.SortableHeader)FindController(typeof(Controllers.SortableHeader));
     if (sortableHeader == null)
     {
         throw new SourceGridException("No SortableHeader controller found");
     }
     sortableHeader.SortColumn(new CellContext(Grid, Range.Start, this), ascending, SortComparer);
 }
Exemple #2
0
 /// <summary>
 /// Static constructor
 /// </summary>
 static SortableHeader()
 {
     Default = new SortableHeader();
 }
		/// <summary>
		/// Static constructor
		/// </summary>
		static SortableHeader()
		{
			Default = new SortableHeader();
		}