Class GridTable
Manages all the records from the underlying source list. The source list can be any IList collection. If it implements IBindingList, the GridTable will listen to the ListChangedEvent and update its internal data whenever changes are made to the source list.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid.Grouping
Assembly: Syncfusion.Grid.Grouping.Windows.dll
Syntax
public class GridTable : GridTableBase, IDisposedEvent, IIsDisposedProperty, ITreeTableCounterSource, ITreeTableSummaryArraySource, IContainerElement, IElementTreeTableSource, IElement, IDisposable, IGridTableOptionsSource, IGridTableCellAppearanceSource
Remarks
See the GridTableBase class for more details overview about this class.
Constructors
GridTable(GridTableDescriptor, GridTable)
Initializes a new instance of the GridTable class this object that belongs to a GridTableDescriptor and optionally belongs to a parent table.
Declaration
public GridTable(GridTableDescriptor tableDescriptor, GridTable relationParentTable)
Parameters
| Type | Name | Description |
|---|---|---|
| GridTableDescriptor | tableDescriptor | The table descriptor with schema information about the table. |
| GridTable | relationParentTable | The parent table of this table; NULL if this table is not a child table of a relation. |
Fields
CurrentRecordContextChangeTarget
Occurs before and after the status of the current record was changed. Check the Action of the CurrentRecordContextChangeEventArgs to get information on which current record state was changed.
Declaration
public CurrentRecordContextChangeEventHandler CurrentRecordContextChangeTarget
Field Value
| Type |
|---|
| CurrentRecordContextChangeEventHandler |
Properties
Appearance
Gets or sets the default GridTableCellAppearance with GridTableCellStyleInfo information for cells of this element.
Declaration
public GridTableCellAppearance Appearance { get; set; }
Property Value
| Type |
|---|
| GridTableCellAppearance |
DefaultCaptionRowHeight
Gets or sets the default height of group caption rows.
Declaration
public override int DefaultCaptionRowHeight { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Overrides
DefaultColumnHeaderRowHeight
Gets or seets the default height of column header rows.
Declaration
public override int DefaultColumnHeaderRowHeight { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Overrides
DefaultEmptySectionHeight
Gets or sets the default height of empty section rows.
Declaration
public override int DefaultEmptySectionHeight { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Overrides
DefaultFilterBarRowHeight
Gets or sets the default height of filter bar rows.
Declaration
public override int DefaultFilterBarRowHeight { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Overrides
DefaultGroupFooterSectionHeight
Gets or sets the default height of group footer sections.
Declaration
public override int DefaultGroupFooterSectionHeight { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Overrides
DefaultGroupHeaderSectionHeight
Gets or sets the default height of group header sections.
Declaration
public override int DefaultGroupHeaderSectionHeight { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Overrides
DefaultGroupPreviewSectionHeight
Gets or sets the default height of group preview rows.
Declaration
public override int DefaultGroupPreviewSectionHeight { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Overrides
DefaultIndentWidth
Gets or sets the default width of group indents.
Declaration
public override int DefaultIndentWidth { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Overrides
DefaultRecordPreviewRowHeight
Gets or sets the default height of record preview rows.
Declaration
public override int DefaultRecordPreviewRowHeight { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Overrides
DefaultRecordRowHeight
Gets or sets the default height of record rows.
Declaration
public override int DefaultRecordRowHeight { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Overrides
DefaultRowHeaderWidth
Gets or sets the default width of row headers.
Declaration
public override int DefaultRowHeaderWidth { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Overrides
DefaultSummaryRowHeight
Gets or sets the default height of summary rows.
Declaration
public override int DefaultSummaryRowHeight { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Overrides
DefaultTableIndentWidth
Gets or sets the default width of table indents.
Declaration
public override int DefaultTableIndentWidth { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
Overrides
Engine
Gets the engine this element belongs to.
Declaration
public GridEngine Engine { get; }
Property Value
| Type |
|---|
| GridEngine |
EngineTable
Gets the GridTable of the engine this element belongs to.
Declaration
public GridTable EngineTable { get; }
Property Value
| Type |
|---|
| GridTable |
Kind
Gets the kind of display element.
Declaration
public override DisplayElementKind Kind { get; }
Property Value
| Type |
|---|
| DisplayElementKind |
Overrides
LastColumnWidth
Gets the column width of the last column. The last column in the grid is used to fill empty space after the last record field. This is needed for hierarchical display, when a nested table is wider than the current table.
Declaration
public int LastColumnWidth { get; }
Property Value
| Type |
|---|
| System.Int32 |
ParentRecord
Gets a reference to the parent record this element belongs to.
Declaration
public GridRecord ParentRecord { get; }
Property Value
| Type |
|---|
| GridRecord |
ParentTable
Gets or sets a reference to the parent table this section belongs to.
Declaration
public GridTable ParentTable { get; set; }
Property Value
| Type |
|---|
| GridTable |
ParentTableDescriptor
Gets the table descriptor this element belongs to.
Declaration
public GridTableDescriptor ParentTableDescriptor { get; }
Property Value
| Type |
|---|
| GridTableDescriptor |
ReadOnlyAppearance
Gets the appearance of this element, If this element is modified; otherwise it returns a GridTableCellAppearance of the first parent element with appearance in the hierarchy.
Declaration
public GridTableCellAppearance ReadOnlyAppearance { get; }
Property Value
| Type |
|---|
| GridTableCellAppearance |
RelationParentTable
Gets the parent table of this table or NULL if this table is not a child table of a relation.
Declaration
public GridTable RelationParentTable { get; }
Property Value
| Type |
|---|
| GridTable |
TableDescriptor
Gets the table descriptor.
Declaration
public GridTableDescriptor TableDescriptor { get; }
Property Value
| Type |
|---|
| GridTableDescriptor |
TableModel
Gets or sets the GridTableModel that is used to display this table in a grid.
Declaration
public GridTableModel TableModel { get; set; }
Property Value
| Type |
|---|
| GridTableModel |
TableOptions
Gets or sets the table-wide properties like the width of the indent column, or whether header rows should be visible.
Declaration
public GridTableOptionsStyleInfo TableOptions { get; set; }
Property Value
| Type |
|---|
| GridTableOptionsStyleInfo |
Methods
AddElementToRepaintQueue(Element)
Used internally.
Declaration
public void AddElementToRepaintQueue(Element element)
Parameters
| Type | Name | Description |
|---|---|---|
| Element | element |
CreateTableCellStyle(GridTableCellStyleInfoIdentity)
Create a GridTableCellStyleInfo and fills in values based on the given GridTableCellStyleInfoIdentity. Call this method if you want to manually setup the GridTableCellStyleInfoIdentity with its TableCellType and other cell-specific information and then fill its cell value, format etc. The cell does not have to be visible in the grid.
Declaration
public GridTableCellStyleInfo CreateTableCellStyle(GridTableCellStyleInfoIdentity tableCellIdentity)
Parameters
| Type | Name | Description |
|---|---|---|
| GridTableCellStyleInfoIdentity | tableCellIdentity |
Returns
| Type | Description |
|---|---|
| GridTableCellStyleInfo |
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing |
Overrides
Engine_PropertyChanged(Object, DescriptorPropertyChangedEventArgs)
Declaration
protected override void Engine_PropertyChanged(object sender, DescriptorPropertyChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | |
| DescriptorPropertyChangedEventArgs | e |
Overrides
GetBaseAppearance()
Returns a GridTableCellAppearance of the first parent element with appearance in the hierarchy.
Declaration
public GridTableCellAppearance GetBaseAppearance()
Returns
| Type | Description |
|---|---|
| GridTableCellAppearance |
GetColumnDescriptorAt(Element, Int32)
Returns the record field cell's GridColumnDescriptor at the specified display element and column.
Declaration
public GridColumnDescriptor GetColumnDescriptorAt(Element element, int colIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| Element | element | The Element. |
| System.Int32 | colIndex | Column index. |
Returns
| Type | Description |
|---|---|
| GridColumnDescriptor | The column descriptor. |
GetColumnDescriptorAt(GridRangeInfo)
Returns the record field cell's GridColumnDescriptor at the specified grid row and column.
Declaration
public GridColumnDescriptor GetColumnDescriptorAt(GridRangeInfo cell)
Parameters
| Type | Name | Description |
|---|---|---|
| GridRangeInfo | cell | Record field cell. |
Returns
| Type | Description |
|---|---|
| GridColumnDescriptor | The column descriptor. |
GetColumnDescriptorAt(Int32, Int32)
Returns the record field cell's GridColumnDescriptor at the specified grid row and column.
Declaration
public GridColumnDescriptor GetColumnDescriptorAt(int rowIndex, int colIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | rowIndex | Row index. |
| System.Int32 | colIndex | Column index. |
Returns
| Type | Description |
|---|---|
| GridColumnDescriptor | The column descriptor. |
GetColumnMaxLength(GridColumnDescriptor)
Returns the calculated maximum length in characters for the specified column. The length is taken from a previous call to OnInitializeColumnsMaxLengthFirstNRecords or from a MaxLengthSummary that automatically tracks changes to fields in the column.
Declaration
public int GetColumnMaxLength(GridColumnDescriptor column)
Parameters
| Type | Name | Description |
|---|---|---|
| GridColumnDescriptor | column | The Column. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Maximum length of the column. |
GetColumnMaxLength(GridColumnDescriptor, FieldDescriptor)
Returns the calculated maximum length in characters for the specified field. The length is taken from a previous call to OnInitializeColumnsMaxLengthFirstNRecords or from a MaxLengthSummary that automatically tracks changes to fields in the column.
Declaration
public virtual int GetColumnMaxLength(GridColumnDescriptor column, FieldDescriptor rfield)
Parameters
| Type | Name | Description |
|---|---|---|
| GridColumnDescriptor | column | The column. |
| FieldDescriptor | rfield | The FieldDescriptor provides the mapping information to a column. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Maximum length of the column. |
GetColumnsNRowsMaxLength(String)
Returns the maximum length for the given field name in the first n records of the data source. n is defined by TableOptions.ColumnsMaxLengthFirstNRecords property.
Declaration
public int GetColumnsNRowsMaxLength(string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | fieldName | Field name. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Maximum length of the field. |
GetCoveredRange(Int32, Int32)
Determines if the cell belongs to a covered range and returns the covered range of the cell or the cell itself as GridRangeInfo if it is not a covered range.
Declaration
public GridRangeInfo GetCoveredRange(int rowIndex, int colIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | rowIndex | The row index of the cell. |
| System.Int32 | colIndex | The column index of the cell. |
Returns
| Type | Description |
|---|---|
| GridRangeInfo | Returns the covered range the cell belongs; if cell is not part of a covered range the cell itself is returned as GridRangeInfo. |
GetElementRangeInfo(Element)
Returns the GridRangeInfo with the range of cells that an element spans.
Declaration
public GridRangeInfo GetElementRangeInfo(Element e)
Parameters
| Type | Name | Description |
|---|---|---|
| Element | e | The element. |
Returns
| Type | Description |
|---|---|
| GridRangeInfo | The GridRangeInfo with the range of cells that an element spans. |
GetHeaderColumnDescriptorAt(GridRangeInfo)
Returns the header column's GridColumnDescriptor at the specified grid row and column.
Declaration
public GridColumnDescriptor GetHeaderColumnDescriptorAt(GridRangeInfo cell)
Parameters
| Type | Name | Description |
|---|---|---|
| GridRangeInfo | cell | The GridRangeInfo. |
Returns
| Type | Description |
|---|---|
| GridColumnDescriptor | The header column descriptor. |
GetHeaderColumnDescriptorAt(Int32)
Returns the header column's GridColumnDescriptor for the specified grid column in the first row of the GridColumnHeaderSection or NULL if no GridColumnHeaderSection is found or the grid column is not a column header.
Declaration
public GridColumnDescriptor GetHeaderColumnDescriptorAt(int colIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | colIndex | Column index. |
Returns
| Type | Description |
|---|---|
| GridColumnDescriptor | The header column descriptor. |
GetHeaderColumnDescriptorAt(Int32, Int32)
Returns the header columns GridColumnDescriptor at the specified grid row and column or NULL if the specified row is not a ColumnHeaderRow or the grid column is not a column header.
Declaration
public GridColumnDescriptor GetHeaderColumnDescriptorAt(int rowIndex, int colIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | rowIndex | Row index. |
| System.Int32 | colIndex | Column index. |
Returns
| Type | Description |
|---|---|
| GridColumnDescriptor | The header column descriptor. |
GetInvokeRequiredControl()
Determines if the current thread is the same UI thread as the parent control or if the current method call should be marshaled.
Declaration
protected override Control GetInvokeRequiredControl()
Returns
| Type | Description |
|---|---|
| System.Windows.Forms.Control | A control that can be used to marshal the current method by calling its Invoke method. |
Overrides
GetMaxLengthSampleRecords()
Returns list of sample records.
Declaration
protected virtual IList GetMaxLengthSampleRecords()
Returns
| Type | Description |
|---|---|
| System.Collections.IList | list |
GetNestedTableCellType(NestedTable)
Returns the cell type name for a NestedTable based on its TableDescriptor name. The returned name is "RT" + relatedTable.TableDescriptor.Name.
Declaration
public string GetNestedTableCellType(NestedTable nestedTable)
Parameters
| Type | Name | Description |
|---|---|---|
| NestedTable | nestedTable | The nested table. |
Returns
| Type | Description |
|---|---|
| System.String | The cell type name. |
GetPreferredColumnWidth(Graphics, GridColumnDescriptor)
Returns the preferred column width in pixels for the specified column taking the length of the column header text and the value returned by GetColumnMaxLength into consideration.
Declaration
public int GetPreferredColumnWidth(Graphics g, GridColumnDescriptor column)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | g | Graphics context. |
| GridColumnDescriptor | column | The Column. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Preferred column width. |
GetPreferredColumnWidth(Graphics, GridColumnDescriptor, Int32)
Returns the preferred column width in pixels for the specified column taking the length of the column header text and the value returned by GetColumnMaxLength into consideration.
Declaration
public virtual int GetPreferredColumnWidth(Graphics g, GridColumnDescriptor column, int maxWidth)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.Graphics | g | The System.Drawing.Graphics |
| GridColumnDescriptor | column | |
| System.Int32 | maxWidth | Width of the max. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Preferred column width. |
GetRecordColumnStyle(Record, GridColumnDescriptor)
Creates a style object and initializes its identity to emulate how the value would appear in a cell in the grid.
Declaration
public GridTableCellStyleInfo GetRecordColumnStyle(Record record, GridColumnDescriptor column)
Parameters
| Type | Name | Description |
|---|---|---|
| Record | record | The Record. |
| GridColumnDescriptor | column | The Column. |
Returns
| Type | Description |
|---|---|
| GridTableCellStyleInfo | A style object for the specified column in the given record. |
GetRelativeRowIndex(RowElement)
Returns the relative row index in the RowElements collection if displayElement is a RecordRow or ColumnHeader row. (A record can have column sets with multiple rows per record)
Declaration
public int GetRelativeRowIndex(RowElement rowElement)
Parameters
| Type | Name | Description |
|---|---|---|
| RowElement | rowElement | The row element |
Returns
| Type | Description |
|---|---|
| System.Int32 | The relative row index of the element. |
GetRowHeaderRange(Element)
Returns the GridRangeInfo that spans the cells where a row header for the specified element should be displayed. Can span multiple rows if a table has multiple rows per record.
Declaration
public GridRangeInfo GetRowHeaderRange(Element element)
Parameters
| Type | Name | Description |
|---|---|---|
| Element | element | The display element. |
Returns
| Type | Description |
|---|---|
| GridRangeInfo | The cell range. |
GetStackedHeaderAt(Int32, Int32)
Returns the header columns GridStackedHeaderDescriptor at the specified grid row and column or NULL if the specified row is not a GridStackedHeaderRow or the grid column is not a column header.
Declaration
public GridStackedHeaderDescriptor GetStackedHeaderAt(int rowIndex, int colIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | rowIndex | Row index. |
| System.Int32 | colIndex | Column index. |
Returns
| Type | Description |
|---|---|
| GridStackedHeaderDescriptor | The stacked header. |
GetStackedHeaderDescriptorAt(Element, Int32)
Returns the record field cell's GridStackedHeaderDescriptor at the specified display element and column.
Declaration
public GridStackedHeaderDescriptor GetStackedHeaderDescriptorAt(Element element, int colIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| Element | element | The element. |
| System.Int32 | colIndex | Column index. |
Returns
| Type | Description |
|---|---|
| GridStackedHeaderDescriptor | The stacked header. |
GetSummaryColumnCollection(Int32)
Returns an array of GridSummaryColumnDescriptor objects that are affected by changes to the field and need to be redrawn.
Declaration
public GridSummaryColumnDescriptorCollection GetSummaryColumnCollection(int fieldIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | fieldIndex | Field index. |
Returns
| Type | Description |
|---|---|
| GridSummaryColumnDescriptorCollection | An array of summary column descriptors. |
GetTableCellStyle(Element, Int32)
Returns the style information with TableCellIdentity for the given element and x-coordinate.
Declaration
public GridTableCellStyleInfo GetTableCellStyle(Element element, int xPosition)
Parameters
| Type | Name | Description |
|---|---|---|
| Element | element | The element |
| System.Int32 | xPosition | The x position in client coordinate. |
Returns
| Type | Description |
|---|---|
| GridTableCellStyleInfo | The style element with identity information for the cell that is displayed at the specified coordinate. |
Remarks
GetTableCellStyle(Element, String)
Returns the GridTableCellStyleInfo for a specified grid row and column.
Declaration
public GridTableCellStyleInfo GetTableCellStyle(Element el, string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| Element | el | The element. |
| System.String | fieldName | The column. |
Returns
| Type | Description |
|---|---|
| GridTableCellStyleInfo |
GetTableCellStyle(ISummarySection, String)
Returns the GridTableCellStyleInfo for a specified grid row and column.
Declaration
public GridTableCellStyleInfo GetTableCellStyle(ISummarySection el, string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| ISummarySection | el | The element. |
| System.String | fieldName | The column. |
Returns
| Type | Description |
|---|---|
| GridTableCellStyleInfo |
GetTableCellStyle(Record, FieldDescriptor)
Returns the GridTableCellStyleInfo for a specified grid row and column.
Declaration
public GridTableCellStyleInfo GetTableCellStyle(Record record, FieldDescriptor field)
Parameters
| Type | Name | Description |
|---|---|---|
| Record | record | The record. |
| FieldDescriptor | field | The field for the column. |
Returns
| Type | Description |
|---|---|
| GridTableCellStyleInfo |
GetTableCellStyle(Record, GridColumnDescriptor)
Returns the GridTableCellStyleInfo for a specified grid row and column.
Declaration
public GridTableCellStyleInfo GetTableCellStyle(Record record, GridColumnDescriptor column)
Parameters
| Type | Name | Description |
|---|---|---|
| Record | record | The record. |
| GridColumnDescriptor | column | The column. |
Returns
| Type | Description |
|---|---|
| GridTableCellStyleInfo |
GetTableCellStyle(Record, GridVisibleColumnDescriptor)
Returns the GridTableCellStyleInfo for a specified grid row and column.
Declaration
public GridTableCellStyleInfo GetTableCellStyle(Record record, GridVisibleColumnDescriptor visibleColumn)
Parameters
| Type | Name | Description |
|---|---|---|
| Record | record | The record. |
| GridVisibleColumnDescriptor | visibleColumn | The column. |
Returns
| Type | Description |
|---|---|
| GridTableCellStyleInfo |
GetTableCellStyle(Record, String)
Returns the GridTableCellStyleInfo for a specified grid row and column.
Declaration
public GridTableCellStyleInfo GetTableCellStyle(Record record, string fieldName)
Parameters
| Type | Name | Description |
|---|---|---|
| Record | record | The record. |
| System.String | fieldName | The name of field for the column (e.g. GridColumnDescriptor.MappingName returns the field name). |
Returns
| Type | Description |
|---|---|
| GridTableCellStyleInfo |
GetTableCellStyle(Int32, Int32)
Returns the GridTableCellStyleInfo for a specified grid row and column.
Declaration
public GridTableCellStyleInfo GetTableCellStyle(int rowIndex, int colIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | rowIndex | The row index. |
| System.Int32 | colIndex | The column index. |
Returns
| Type | Description |
|---|---|
| GridTableCellStyleInfo |
GetTotalWidthOfRowHeadersAndIndent()
Calculates the width of row headers and all indent columns before the first record column.
Declaration
public int GetTotalWidthOfRowHeadersAndIndent()
Returns
| Type | Description |
|---|---|
| System.Int32 | Total width. |
GetTotalWidthOfRowHeadersAndIndent(Boolean)
Calculates the width of row headers and all indent columns before the first record column.
Declaration
public int GetTotalWidthOfRowHeadersAndIndent(bool includeWidthOfParentTableIndent)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | includeWidthOfParentTableIndent | Specifies if width of nested table indents and parent table row headers should be added. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Total width. |
GetTotalWidthOfTable(Boolean)
Calculates the width of the table considering all indent columns and visible columns.
Declaration
public int GetTotalWidthOfTable(bool checkNestedTables)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | checkNestedTables | True if nested tables should also be considered. |
Returns
| Type | Description |
|---|---|
| System.Int32 | Total width. |
OnAddedRelatedTable(TableEventArgs)
Declaration
protected override void OnAddedRelatedTable(TableEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| TableEventArgs | e |
Overrides
OnCategorizedRecords(TableEventArgs)
Declaration
protected override void OnCategorizedRecords(TableEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| TableEventArgs | e |
Overrides
OnCurrentRecordContextChange(CurrentRecordContextChangeEventArgs)
Declaration
protected override void OnCurrentRecordContextChange(CurrentRecordContextChangeEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| CurrentRecordContextChangeEventArgs | e |
Overrides
OnEnsureSortFields()
Declaration
protected override void OnEnsureSortFields()
Overrides
OnGroupSummaryInvalidated(GroupEventArgs)
Declaration
protected override void OnGroupSummaryInvalidated(GroupEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| GroupEventArgs | e |
Overrides
OnInitializeColumnsMaxLengthFirstNRecords(Hashtable)
This method is called internally when GridColumnsMaxLengthStrategy.FirstNRecords has been specified and the column lengths for each field need to be initialized.
Declaration
protected virtual void OnInitializeColumnsMaxLengthFirstNRecords(Hashtable columnsMaxLengthFirstNRecordsTable)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Hashtable | columnsMaxLengthFirstNRecordsTable | The hashtable uses the FieldDescriptor.Name as key and the column length in characters as value. |
OnPopulatedChildTable(ChildTable)
Declaration
protected override void OnPopulatedChildTable(ChildTable childTable)
Parameters
| Type | Name | Description |
|---|---|---|
| ChildTable | childTable |
Overrides
OnPrepareRemoving(Object)
Declaration
protected override void OnPrepareRemoving(object row)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | row |
Overrides
OnQueryCellStyleInfo(GridTableCellStyleInfoEventArgs)
Raises the QueryCellStyleInfo event.
Declaration
protected virtual void OnQueryCellStyleInfo(GridTableCellStyleInfoEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| GridTableCellStyleInfoEventArgs | e | A GridTableCellStyleInfoEventArgs that contains the event data. |
OnQueryCoveredRange(GridTableQueryCoveredRangeEventArgs)
Raises the QueryCoveredRange event and calculates the covered range for a cell. Examples for covered ranges are the caption bar of a group, a summary row with GridSummaryStyle.FillRow, or the first record field cell of an add new record (which spans over the record field and plus minus button of groups below).
Declaration
protected virtual void OnQueryCoveredRange(GridTableQueryCoveredRangeEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| GridTableQueryCoveredRangeEventArgs | e | A GridQueryCoveredRangeEventArgs that contains the event data. |
OnRemovingRelatedTable(TableEventArgs)
Declaration
protected override void OnRemovingRelatedTable(TableEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| TableEventArgs | e |
Overrides
OnSourceListChanged(TableEventArgs)
Declaration
protected override void OnSourceListChanged(TableEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| TableEventArgs | e |
Overrides
OnSourceListItemChanged(Object, ListChangedEventArgs, TableListChangedEventArgs)
Declaration
protected override void OnSourceListItemChanged(object sender, ListChangedEventArgs e, TableListChangedEventArgs te)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | |
| System.ComponentModel.ListChangedEventArgs | e | |
| TableListChangedEventArgs | te |
Overrides
OnSourceListReset(Object, ListChangedEventArgs, TableListChangedEventArgs)
Declaration
protected override void OnSourceListReset(object sender, ListChangedEventArgs e, TableListChangedEventArgs te)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | |
| System.ComponentModel.ListChangedEventArgs | e | |
| TableListChangedEventArgs | te |
Overrides
PopulatePassThroughGroupsUntilFoundNRecords(Group, Int32)
Populates pass through groups for specified number of records.
Declaration
public void PopulatePassThroughGroupsUntilFoundNRecords(Group g, int count)
Parameters
| Type | Name | Description |
|---|---|---|
| Group | g | The parent group. |
| System.Int32 | count | The record count. |
ResetAppearance()
Discards any changes for the Appearance object.
Declaration
public void ResetAppearance()
ResetRepaintElementsInQueue()
Clears the internal repaint elements queue. Call this method if you made changes to the table and you experience an exception triggered by a RepaintElementsInQueue method call. The method lets you work around any issues if elements are in the queue that have just been deleted from the table.
Declaration
public void ResetRepaintElementsInQueue()
ResetTableOptions()
Discards any changes for the TableOptions object.
Declaration
public void ResetTableOptions()
ShouldSerializeAppearance()
Determines whether Appearance has been modified and contents should be serialized at design-time.
Declaration
public bool ShouldSerializeAppearance()
Returns
| Type | Description |
|---|---|
| System.Boolean | True if contents were changed; False otherwise. |
ShouldSerializeTableOptions()
Determines whether TableOptions were modified and contents should be serialized at design-time.
Declaration
public bool ShouldSerializeTableOptions()
Returns
| Type | Description |
|---|---|
| System.Boolean | True if contents were changed; False otherwise. |
UnwireTableDescriptor()
Declaration
protected override void UnwireTableDescriptor()
Overrides
WireTableDescriptor()
Declaration
protected override void WireTableDescriptor()
Overrides
Events
QueryCellStyleInfo
Occurs for each cell before a GridTableControl starts painting and lets users customize the display of cells.
Declaration
public event GridTableCellStyleInfoEventHandler QueryCellStyleInfo
Event Type
| Type |
|---|
| GridTableCellStyleInfoEventHandler |
Remarks
Handling through a GridTableCellStyleInfoEventArgs
QueryCoveredRange
Occurs to determine if the cell belongs to a covered range and returns the covered range of the cell or the cell itself as GridRangeInfo if it is not a covered range.
Declaration
public event GridTableQueryCoveredRangeEventHandler QueryCoveredRange
Event Type
| Type |
|---|
| GridTableQueryCoveredRangeEventHandler |
Explicit Interface Implementations
IGridTableCellAppearanceSource.GetAppearance()
Declaration
GridTableCellAppearance IGridTableCellAppearanceSource.GetAppearance()
Returns
| Type |
|---|
| GridTableCellAppearance |
IGridTableCellAppearanceSource.RaiseAppearanceChanged(GridTableCellStyleInfoChangedEventArgs)
Declaration
void IGridTableCellAppearanceSource.RaiseAppearanceChanged(GridTableCellStyleInfoChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| GridTableCellStyleInfoChangedEventArgs | e |
IGridTableCellAppearanceSource.RaiseAppearanceChanging(GridTableCellStyleInfoChangedEventArgs)
Declaration
void IGridTableCellAppearanceSource.RaiseAppearanceChanging(GridTableCellStyleInfoChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| GridTableCellStyleInfoChangedEventArgs | e |
IGridTableOptionsSource.GetParentTableOptionsSource()
Declaration
IGridTableOptionsSource IGridTableOptionsSource.GetParentTableOptionsSource()
Returns
| Type |
|---|
| IGridTableOptionsSource |
IGridTableOptionsSource.HasTableOptions
Declaration
bool IGridTableOptionsSource.HasTableOptions { get; }
Returns
| Type |
|---|
| System.Boolean |
IGridTableOptionsSource.RaiseTableOptionsChanged(GridTableOptionsChangedEventArgs)
Declaration
void IGridTableOptionsSource.RaiseTableOptionsChanged(GridTableOptionsChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| GridTableOptionsChangedEventArgs | e |
IGridTableOptionsSource.RaiseTableOptionsChanging(GridTableOptionsChangedEventArgs)
Declaration
void IGridTableOptionsSource.RaiseTableOptionsChanging(GridTableOptionsChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| GridTableOptionsChangedEventArgs | e |