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
コード例 #1
0
ファイル: ColumnHeader.cs プロジェクト: Sphere10/Framework
 /// <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);
 }
コード例 #2
0
 /// <summary>
 /// Static constructor
 /// </summary>
 static SortableHeader()
 {
     Default = new SortableHeader();
 }
コード例 #3
0
ファイル: SortableHeader.cs プロジェクト: Davincier/openpetra
		/// <summary>
		/// Static constructor
		/// </summary>
		static SortableHeader()
		{
			Default = new SortableHeader();
		}