WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridDataTableModel

    Show / Hide Table of Contents

    Class GridDataTableModel

    Represents the child tables in groups of PrimaryKey columns.

    Inheritance
    System.Object
    GridModel
    GridDataTableModel
    GridDataChildTableModel
    Implements
    IGridVolatileCellStylesHost
    IOperationFeedbackProvider
    System.IDisposable
    System.ComponentModel.ISupportInitialize
    Inherited Members
    GridModel.SuspendFormattedTextCalculation()
    GridModel.ResumeFormattedTextCalculation()
    GridModel.ShouldHideColumn(Int32, Boolean)
    GridModel.OnOleDropAtRowCol(GridOleDropAtRowColEventArgs)
    GridModel.RaiseOleDropAtRowCol(GridOleDropAtRowColEventArgs)
    GridModel.OnOleDroppedData(EventArgs)
    GridModel.RaiseOleDroppedData(EventArgs)
    GridModel.OnQueryOleDataSourceData(GridQueryOleDataSourceDataEventArgs)
    GridModel.RaiseQueryOleDataSourceData(GridQueryOleDataSourceDataEventArgs)
    GridModel.OnQueryDragDropMoveClearCells(CancelEventArgs)
    GridModel.RaiseQueryDragDropMoveClearCells(CancelEventArgs)
    GridModel.SuspendRecordUndo()
    GridModel.ResumeRecordUndo()
    GridModel.SetGridModelCommandManager(GridModel)
    GridModel.ChangeSelectionState(Int32, Int32, GridRangeInfo[])
    GridModel.ChangeCells(GridRangeInfo, GridStyleInfo[], StyleModifyType)
    GridModel.GetCellsInfo(GridRangeInfo)
    GridModel.GetCellInfo(Int32, Int32, GridStyleInfo)
    GridModel.SetCellInfo(Int32, Int32, GridStyleInfo, StyleModifyType)
    GridModel.ChangeCells(GridRangeInfo, String)
    GridModel.ChangeCells(GridRangeInfo, GridStyleInfo)
    GridModel.ChangeCells(GridRangeInfo, GridStyleInfo, StyleModifyType)
    GridModel.ChangeCells(GridRangeInfo, GridStyleInfo[])
    GridModel.Dispose()
    GridModel.OnCreateRowHeights()
    GridModel.OnCreateColumnWidths()
    GridModel.OnCommitCellInfo(GridCommitCellInfoEventArgs)
    GridModel.OnCommittedCellInfo(GridCommitCellInfoEventArgs)
    GridModel.RaiseQueryContextMenuInfo(GridQueryContextMenuInfoEventArgs)
    GridModel.IGridVolatileCellStylesHost.QueryCellInfo(RowColumnIndex, GridStyleInfo)
    GridModel.IGridVolatileCellStylesHost.QueryBaseStyles(RowColumnIndex, GridStyleInfo)
    GridModel.IGridVolatileCellStylesHost.CommitCellInfo(RowColumnIndex, GridStyleInfo, StyleInfoProperty)
    GridModel.InsertRows(Int32, Int32)
    GridModel.RemoveRows(Int32, Int32)
    GridModel.InsertColumns(Int32, Int32)
    GridModel.OnColumnsInserted(GridRangeInsertedEventArgs)
    GridModel.RemoveColumns(Int32, Int32)
    GridModel.OnColumnsRemoved(GridRangeRemovedEventArgs)
    GridModel.MoveRows(Int32, Int32, Int32)
    GridModel.OnRowsMoved(GridRangeMovedEventArgs)
    GridModel.MoveColumns(Int32, Int32, Int32)
    GridModel.OnColumnsMoved(GridRangeMovedEventArgs)
    GridModel.OnCreateBaseStylesMap()
    GridModel.OnBaseStylesMapChanged(EventArgs)
    GridModel.IGridVolatileCellStylesHost.LookupCellModel(String)
    GridModel.OnCellModelsChanged(CollectionChangeEventArgs)
    GridModel.OnQueryCellModel(GridQueryCellModelEventArgs)
    GridModel.RaiseQueryCellModel(GridQueryCellModelEventArgs)
    GridModel.OnQueryCellText(GridCellTextEventArgs)
    GridModel.RaiseQueryCellText(GridCellTextEventArgs)
    GridModel.OnSaveCellText(GridCellTextEventArgs)
    GridModel.RaiseSaveCellText(GridCellTextEventArgs)
    GridModel.OnQueryCellFormattedText(GridCellTextEventArgs)
    GridModel.RaiseQueryCellFormattedText(GridCellTextEventArgs)
    GridModel.OnSaveCellFormattedText(GridCellTextEventArgs)
    GridModel.RaiseSaveCellFormattedText(GridCellTextEventArgs)
    GridModel.OnParseCommonFormats(GridCellTextEventArgs)
    GridModel.RaiseParseCommonFormats(GridCellTextEventArgs)
    GridModel.OnQueryCellSpanBackgrounds(GridQueryCellSpanBackgroundsEventArgs)
    GridModel.InvalidateCell(RowColumnIndex)
    GridModel.InvalidateCell(CellSpanInfoBase)
    GridModel.InvalidateCell(GridRangeInfo)
    GridModel.InvalidateVisual()
    GridModel.InvalidateVisual(Boolean)
    GridModel.OnSelectionChanged(GridSelectionChangedEventArgs)
    GridModel.OnSelectionChanging(GridSelectionChangingEventArgs)
    GridModel.OnCellRequestNavigate(CellRequestNavigateEventArgs)
    GridModel.OnClipboardCanCopy(GridCutPasteEventArgs)
    GridModel.OnClipboardCanCut(GridCutPasteEventArgs)
    GridModel.OnClipboardPaste(GridCutPasteEventArgs)
    GridModel.OnClipboardPasted(GridCutPasteEventArgs)
    GridModel.OnClipboardCopy(GridCutPasteEventArgs)
    GridModel.OnClipboardCut(GridCutPasteEventArgs)
    GridModel.GetStyleDataSource(GridStyleInfo)
    GridModel.GetCachedStandardValues(TypeConverter, Type)
    GridModel.IsCols(GridRangeInfoList)
    GridModel.IsRows(GridRangeInfoList)
    GridModel.ResizeColumnsToFit(GridRangeInfo, GridResizeToFitOptions)
    GridModel.ResizeColumnsToFit(GridRangeInfo, GridResizeToFitOptions, Boolean)
    GridModel.ResizeRowsToFit(GridRangeInfo, GridResizeToFitOptions)
    GridModel.IOperationFeedbackProvider.RaiseOperationFeedbackEvent(OperationFeedbackEventArgs)
    GridModel.SupportsQueryCoveredCellCallback
    GridModel.CachedVScrollValue
    GridModel.CachedHScrollValue
    GridModel.VolatileCellStyles
    GridModel.IgnoreReadOnly
    GridModel.FormulaEngine
    GridModel.EnableContextMenu
    GridModel.DisableEditorsContextMenu
    GridModel.Sizer
    GridModel.DragDropData
    GridModel.ActiveGridView
    GridModel.ShouldRecordUndo
    GridModel.CommandStack
    GridModel.VolatileCellStylesFactoryMethod
    GridModel.RowCount
    GridModel.ColumnCount
    GridModel.Options
    GridModel.RowHeights
    GridModel.ColumnWidths
    GridModel.CoveredCells
    GridModel.GraphicModel
    GridModel.OverlappingCells
    GridModel.CellSpanBackgrounds
    GridModel.Data
    GridModel.FrozenRows
    GridModel.FrozenColumns
    GridModel.FooterRows
    GridModel.FooterColumns
    GridModel.HeaderRows
    GridModel.HeaderColumns
    GridModel.TableStyle
    GridModel.RowStyles
    GridModel.ColStyles
    GridModel.HeaderStyle
    GridModel.FooterStyle
    GridModel.Item[Int32, Int32]
    GridModel.HiddenColRanges
    GridModel.HiddenRowRanges
    GridModel.BaseStylesMap
    GridModel.HasBaseStylesMap
    GridModel.CellModels
    GridModel.Views
    GridModel.Selections
    GridModel.SelectedCells
    GridModel.CurrentCellState
    GridModel.SelectedRanges
    GridModel.UserData
    GridModel.GridCopyPaste
    GridModel.TextDataExchange
    GridModel.CutPaste
    GridModel.EventsHost
    GridModel.CoveredRanges
    GridModel.IOperationFeedbackProvider.FeedbackStack
    GridModel.OleDropAtRowCol
    GridModel.OleDroppedData
    GridModel.QueryOleDataSourceData
    GridModel.QueryDragDropMoveClearCells
    GridModel.Disposing
    GridModel.QueryContextMenuInfo
    GridModel.QueryCellInfo
    GridModel.CommitCellInfo
    GridModel.CommittedCellInfo
    GridModel.QueryBaseStyles
    GridModel.RowsInserted
    GridModel.RowsRemoved
    GridModel.ColumnsInserted
    GridModel.ColumnsRemoved
    GridModel.RowsMoved
    GridModel.ColumnsMoved
    GridModel.BaseStylesMapChanged
    GridModel.CellModelsChanged
    GridModel.QueryCellModel
    GridModel.QueryCellFormattedText
    GridModel.SaveCellFormattedText
    GridModel.ParseCommonFormats
    GridModel.QueryCellText
    GridModel.SaveCellText
    GridModel.QueryCoveredRange
    GridModel.QueryCellSpanBackgrounds
    GridModel.SelectionChanged
    GridModel.SelectionChanging
    GridModel.CellRequestNavigate
    GridModel.ClipboardCanPaste
    GridModel.ClipboardCanCopy
    GridModel.ClipboardCanCut
    GridModel.ClipboardPaste
    GridModel.ClipboardPasted
    GridModel.ClipboardCopy
    GridModel.ClipboardCut
    GridModel.OperationFeedback
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Controls.Grid
    Assembly: Syncfusion.Grid.Wpf.dll
    Syntax
    public class GridDataTableModel : GridModel, IGridVolatileCellStylesHost, IOperationFeedbackProvider, IDisposable, ISupportInitialize

    Constructors

    GridDataTableModel()

    Declaration
    public GridDataTableModel()

    GridDataTableModel(GridControlBase)

    Initializes a new instance of the class.

    Declaration
    public GridDataTableModel(GridControlBase grid)
    Parameters
    Type Name Description
    GridControlBase grid

    The GridControlBase which is binded with the TableModel

    Fields

    DefaultRowHeight

    Declaration
    public const double DefaultRowHeight = 24
    Field Value
    Type Description
    System.Double

    ExpandCollapseCellWidth

    Declaration
    public const double ExpandCollapseCellWidth = 24
    Field Value
    Type Description
    System.Double

    gridDataTable

    private accessor for GridTable.

    Declaration
    protected GridDataTable gridDataTable
    Field Value
    Type Description
    GridDataTable

    HeaderRowHeight

    Declaration
    public const double HeaderRowHeight = 28
    Field Value
    Type Description
    System.Double

    inSerialization

    Declaration
    public bool inSerialization
    Field Value
    Type Description
    System.Boolean

    Properties

    ColumnAutoSizer

    Declaration
    public GridDataControlColumnSizer ColumnAutoSizer { get; }
    Property Value
    Type Description
    GridDataControlColumnSizer

    CurrencyManager

    Gets or sets the currency manager.

    Declaration
    public GridDataCurrentRecordManager CurrencyManager { get; }
    Property Value
    Type Description
    GridDataCurrentRecordManager

    The currency manager.

    Grid

    Gets or sets the grid.

    Declaration
    public GridControlBase Grid { get; set; }
    Property Value
    Type Description
    GridControlBase

    The grid.

    GridVisualStyle

    Gets or sets the grid visual style.

    Declaration
    public IGridDataVisualStyle GridVisualStyle { get; set; }
    Property Value
    Type Description
    IGridDataVisualStyle

    The grid visual style.

    InCollectionViewCurrency

    Declaration
    protected bool InCollectionViewCurrency { get; set; }
    Property Value
    Type Description
    System.Boolean

    InCurrencyManager

    Declaration
    protected bool InCurrencyManager { get; set; }
    Property Value
    Type Description
    System.Boolean

    IndentColumnStyle

    Declaration
    public GridStyleInfo IndentColumnStyle { get; }
    Property Value
    Type Description
    GridStyleInfo

    IsEditing

    Gets a value indicating whether this instance is editing.

    Declaration
    public bool IsEditing { get; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is editing; otherwise, false.

    IsInColumnRefresh

    Declaration
    public bool IsInColumnRefresh { get; }
    Property Value
    Type Description
    System.Boolean

    IsInFilter

    Declaration
    public bool IsInFilter { get; set; }
    Property Value
    Type Description
    System.Boolean

    IsInFilterOverride

    Declaration
    protected bool IsInFilterOverride { get; set; }
    Property Value
    Type Description
    System.Boolean

    IsInGroup

    Declaration
    public bool IsInGroup { get; }
    Property Value
    Type Description
    System.Boolean

    IsInitialized

    Gets or sets a value indicating whether IsInitialized property. Specifies if the object needs to be re-initialized.

    Declaration
    public bool IsInitialized { get; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is initialized; otherwise, false.

    IsInSort

    Declaration
    public bool IsInSort { get; }
    Property Value
    Type Description
    System.Boolean

    IsInSourceListChanged

    Declaration
    public bool IsInSourceListChanged { get; }
    Property Value
    Type Description
    System.Boolean

    IsInSuspend

    Declaration
    public bool IsInSuspend { get; }
    Property Value
    Type Description
    System.Boolean

    IsLoaded

    Declaration
    public bool IsLoaded { get; }
    Property Value
    Type Description
    System.Boolean

    IsSourceListReset

    Declaration
    public bool IsSourceListReset { get; protected set; }
    Property Value
    Type Description
    System.Boolean

    RefreshWholeRow

    Gets or sets the grid should refresh the whole row even if a single cell in the row changes.

    Declaration
    public bool RefreshWholeRow { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    if you want the grid to change the backcolor of a whole row when a single value changes, then the grid needs to redraw the whole row when the value changes.

    SourceList

    Gets the source list.

    Declaration
    public IEnumerable SourceList { get; }
    Property Value
    Type Description
    System.Collections.IEnumerable

    Specifies the SourceList.

    SourceListCount

    Declaration
    public int SourceListCount { get; }
    Property Value
    Type Description
    System.Int32

    Table

    Gets the child table.

    Declaration
    public GridDataTable Table { get; }
    Property Value
    Type Description
    GridDataTable

    The child table.

    TableProperties

    Gets or sets the table descriptor.

    Declaration
    public GridDataTableProperties TableProperties { get; set; }
    Property Value
    Type Description
    GridDataTableProperties

    The table descriptor.

    UnboundRowsCount

    Declaration
    public int UnboundRowsCount { get; set; }
    Property Value
    Type Description
    System.Int32

    View

    Gets or sets the ICollectionViewAdv which interacts with the Model.

    Declaration
    public ICollectionViewAdv View { get; }
    Property Value
    Type Description
    Syncfusion.Windows.Data.ICollectionViewAdv

    Methods

    ApplyFont()

    Declaration
    public void ApplyFont()

    BeginInit()

    Declaration
    public void BeginInit()

    CreateAutoSizer()

    Declaration
    protected override GridColumnAutoSizer CreateAutoSizer()
    Returns
    Type Description
    GridColumnAutoSizer
    Overrides
    GridModel.CreateAutoSizer()

    CreateCollectionViewAdv(IEnumerable)

    Declaration
    public virtual ICollectionViewAdv CreateCollectionViewAdv(IEnumerable source)
    Parameters
    Type Name Description
    System.Collections.IEnumerable source
    Returns
    Type Description
    Syncfusion.Windows.Data.ICollectionViewAdv

    CreateGridMoveCellsState(IEditableLineSizeHost)

    Declaration
    protected override GridMoveCellsState CreateGridMoveCellsState(IEditableLineSizeHost lineSizes)
    Parameters
    Type Name Description
    IEditableLineSizeHost lineSizes
    Returns
    Type Description
    GridMoveCellsState
    Overrides
    GridModel.CreateGridMoveCellsState(IEditableLineSizeHost)

    CreateVolatileCellStyles()

    Creates the volatile cell styles.

    Declaration
    protected override GridVolatileCellStyles CreateVolatileCellStyles()
    Returns
    Type Description
    GridVolatileCellStyles
    Overrides
    GridModel.CreateVolatileCellStyles()

    Deserialize(String)

    Deserializes the specified GridDataTableModel.

    Declaration
    public override void Deserialize(string fileName)
    Parameters
    Type Name Description
    System.String fileName
    Overrides
    GridModel.Deserialize(String)

    DeserializeFromStream(TextReader)

    Deserializes from stream.

    Declaration
    public override void DeserializeFromStream(TextReader textReader)
    Parameters
    Type Name Description
    System.IO.TextReader textReader

    The text reader.

    Overrides
    GridModel.DeserializeFromStream(TextReader)

    DeserializeFromString(String)

    Deserializes GridDataTableModel properties from string.

    Declaration
    public override void DeserializeFromString(string content)
    Parameters
    Type Name Description
    System.String content

    The content.

    Overrides
    GridModel.DeserializeFromString(String)

    Dispose(Boolean)

    Releases unmanaged and - optionally - managed resources

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    true to release both managed and unmanaged resources; false to release only unmanaged resources.

    Overrides
    GridModel.Dispose(Boolean)

    EndInit()

    Declaration
    public void EndInit()

    EnsureInitialized()

    Ensures the object are initialized.

    Declaration
    protected virtual void EnsureInitialized()

    FilterColumn(GridDataVisibleColumn, List<FilterPredicate>, Boolean, Boolean)

    Declaration
    protected virtual void FilterColumn(GridDataVisibleColumn column, List<FilterPredicate> filterPredicates, bool canApplyFilter, bool isDomaingrid)
    Parameters
    Type Name Description
    GridDataVisibleColumn column
    System.Collections.Generic.List<Syncfusion.Windows.Data.FilterPredicate> filterPredicates
    System.Boolean canApplyFilter
    System.Boolean isDomaingrid

    FilterColumnMethod(GridDataVisibleColumn, Object, FilterType, PredicateType, Boolean, Boolean)

    Declaration
    protected virtual void FilterColumnMethod(GridDataVisibleColumn column, object filterValue, FilterType filterType, PredicateType predicateType, bool isCaseSensitive, bool canApplyFilter)
    Parameters
    Type Name Description
    GridDataVisibleColumn column
    System.Object filterValue
    Syncfusion.Linq.FilterType filterType
    Syncfusion.Windows.Data.PredicateType predicateType
    System.Boolean isCaseSensitive
    System.Boolean canApplyFilter

    GetboundExpressionFuncMethod(String)

    Declaration
    protected virtual Expression<Func<string, object, object>> GetboundExpressionFuncMethod(string propertyName)
    Parameters
    Type Name Description
    System.String propertyName
    Returns
    Type Description
    System.Linq.Expressions.Expression<System.Func<System.String, System.Object, System.Object>>

    GetDefaultView(IEnumerable)

    Declaration
    public static ICollectionViewAdv GetDefaultView(IEnumerable source)
    Parameters
    Type Name Description
    System.Collections.IEnumerable source
    Returns
    Type Description
    Syncfusion.Windows.Data.ICollectionViewAdv

    GetDynamicVisibleColumns()

    Declaration
    public GridDataVisibleColumns GetDynamicVisibleColumns()
    Returns
    Type Description
    GridDataVisibleColumns

    GetFilters()

    Declaration
    protected ObservableCollection<IFilterDefinition> GetFilters()
    Returns
    Type Description
    System.Collections.ObjectModel.ObservableCollection<Syncfusion.Windows.Data.IFilterDefinition>

    GetGroupCaptionSummary(Group, ISummaryColumn)

    Declaration
    public Dictionary<string, object> GetGroupCaptionSummary(Group group, ISummaryColumn summaryColumn)
    Parameters
    Type Name Description
    Syncfusion.Windows.Data.Group group
    Syncfusion.Windows.Data.ISummaryColumn summaryColumn
    Returns
    Type Description
    System.Collections.Generic.Dictionary<System.String, System.Object>

    GetGroupSummary(Group, ISummaryRow, ISummaryColumn)

    Declaration
    public Dictionary<string, object> GetGroupSummary(Group group, ISummaryRow summaryRow, ISummaryColumn summaryColumn)
    Parameters
    Type Name Description
    Syncfusion.Windows.Data.Group group
    Syncfusion.Windows.Data.ISummaryRow summaryRow
    Syncfusion.Windows.Data.ISummaryColumn summaryColumn
    Returns
    Type Description
    System.Collections.Generic.Dictionary<System.String, System.Object>

    GetResolveStartIndexBasedOnPosition()

    Declaration
    protected int GetResolveStartIndexBasedOnPosition()
    Returns
    Type Description
    System.Int32

    GetSourceList(Object)

    Declaration
    public virtual IEnumerable GetSourceList(object source)
    Parameters
    Type Name Description
    System.Object source
    Returns
    Type Description
    System.Collections.IEnumerable

    GetTableSummary(ISummaryRow, ISummaryColumn)

    Declaration
    public Dictionary<string, object> GetTableSummary(ISummaryRow summaryRow, ISummaryColumn summaryColumn)
    Parameters
    Type Name Description
    Syncfusion.Windows.Data.ISummaryRow summaryRow
    Syncfusion.Windows.Data.ISummaryColumn summaryColumn
    Returns
    Type Description
    System.Collections.Generic.Dictionary<System.String, System.Object>

    GetUnboundExpressionFuncMethod(String)

    Declaration
    protected virtual Expression<Func<string, object, object>> GetUnboundExpressionFuncMethod(string propertyName)
    Parameters
    Type Name Description
    System.String propertyName
    Returns
    Type Description
    System.Linq.Expressions.Expression<System.Func<System.String, System.Object, System.Object>>

    GetVisibleColumns()

    Declaration
    public GridDataVisibleColumns GetVisibleColumns()
    Returns
    Type Description
    GridDataVisibleColumns

    GetVisualStyleDictionary(FrameworkElement)

    Returns the VisualStyle ResourceDictionary.

    Declaration
    public ResourceDictionary GetVisualStyleDictionary(FrameworkElement element)
    Parameters
    Type Name Description
    System.Windows.FrameworkElement element
    Returns
    Type Description
    System.Windows.ResourceDictionary

    InsertColumnsCore(Int32, Int32, GridMoveCellsState)

    Declaration
    protected override void InsertColumnsCore(int insertAtColumnIndex, int count, GridMoveCellsState moveCellsState)
    Parameters
    Type Name Description
    System.Int32 insertAtColumnIndex
    System.Int32 count
    GridMoveCellsState moveCellsState
    Overrides
    GridModel.InsertColumnsCore(Int32, Int32, GridMoveCellsState)

    InsertRowsCore(Int32, Int32, GridMoveCellsState)

    Declaration
    protected override void InsertRowsCore(int insertAtRowIndex, int count, GridMoveCellsState moveCellsState)
    Parameters
    Type Name Description
    System.Int32 insertAtRowIndex
    System.Int32 count
    GridMoveCellsState moveCellsState
    Overrides
    GridModel.InsertRowsCore(Int32, Int32, GridMoveCellsState)

    OnClipboardCanPaste(GridCutPasteEventArgs)

    Declaration
    protected override void OnClipboardCanPaste(GridCutPasteEventArgs e)
    Parameters
    Type Name Description
    GridCutPasteEventArgs e
    Overrides
    GridModel.OnClipboardCanPaste(GridCutPasteEventArgs)

    OnContextMenuCreating()

    Declaration
    protected override ContextMenu OnContextMenuCreating()
    Returns
    Type Description
    System.Windows.Controls.ContextMenu
    Overrides
    GridModel.OnContextMenuCreating()

    OnFilterChanged(GridFilterEventArgs)

    Declaration
    protected void OnFilterChanged(GridFilterEventArgs e)
    Parameters
    Type Name Description
    GridFilterEventArgs e

    OnFilterChanging(GridFilterEventArgs)

    Declaration
    protected void OnFilterChanging(GridFilterEventArgs e)
    Parameters
    Type Name Description
    GridFilterEventArgs e

    OnQueryBaseStyles(GridQueryBaseStylesEventArgs)

    Declaration
    protected override void OnQueryBaseStyles(GridQueryBaseStylesEventArgs e)
    Parameters
    Type Name Description
    GridQueryBaseStylesEventArgs e
    Overrides
    GridModel.OnQueryBaseStyles(GridQueryBaseStylesEventArgs)

    OnQueryCellInfo(GridQueryCellInfoEventArgs)

    Declaration
    protected override void OnQueryCellInfo(GridQueryCellInfoEventArgs e)
    Parameters
    Type Name Description
    GridQueryCellInfoEventArgs e
    Overrides
    GridModel.OnQueryCellInfo(GridQueryCellInfoEventArgs)

    OnQueryContextMenuInfo(GridQueryContextMenuInfoEventArgs)

    Declaration
    protected override void OnQueryContextMenuInfo(GridQueryContextMenuInfoEventArgs e)
    Parameters
    Type Name Description
    GridQueryContextMenuInfoEventArgs e
    Overrides
    GridModel.OnQueryContextMenuInfo(GridQueryContextMenuInfoEventArgs)

    OnQueryCoveredRange(GridQueryCoveredRangeEventArgs)

    Declaration
    protected override void OnQueryCoveredRange(GridQueryCoveredRangeEventArgs e)
    Parameters
    Type Name Description
    GridQueryCoveredRangeEventArgs e
    Overrides
    GridModel.OnQueryCoveredRange(GridQueryCoveredRangeEventArgs)

    OnQueryVisibleColumnInfo(QueryVisibleColumnInfoArgs)

    Declaration
    protected virtual void OnQueryVisibleColumnInfo(QueryVisibleColumnInfoArgs args)
    Parameters
    Type Name Description
    QueryVisibleColumnInfoArgs args

    OnRowsInserted(GridRangeInsertedEventArgs)

    Declaration
    protected override void OnRowsInserted(GridRangeInsertedEventArgs e)
    Parameters
    Type Name Description
    GridRangeInsertedEventArgs e
    Overrides
    GridModel.OnRowsInserted(GridRangeInsertedEventArgs)

    OnRowsRemoved(GridRangeRemovedEventArgs)

    Declaration
    protected override void OnRowsRemoved(GridRangeRemovedEventArgs e)
    Parameters
    Type Name Description
    GridRangeRemovedEventArgs e
    Overrides
    GridModel.OnRowsRemoved(GridRangeRemovedEventArgs)

    OnUpdateAutoSizer(Boolean, Boolean)

    Declaration
    protected override void OnUpdateAutoSizer(bool applySizes, bool columnSizerChanged)
    Parameters
    Type Name Description
    System.Boolean applySizes
    System.Boolean columnSizerChanged
    Overrides
    GridModel.OnUpdateAutoSizer(Boolean, Boolean)

    RaiseQueryVisibleColumnInfo(QueryVisibleColumnInfoArgs)

    Declaration
    public void RaiseQueryVisibleColumnInfo(QueryVisibleColumnInfoArgs e)
    Parameters
    Type Name Description
    QueryVisibleColumnInfoArgs e

    RefreshChildRecord()

    Declaration
    public void RefreshChildRecord()

    RefreshDisplayMethod(Boolean)

    Declaration
    protected void RefreshDisplayMethod(bool needsRefreshTable)
    Parameters
    Type Name Description
    System.Boolean needsRefreshTable

    RefreshSourceListCountMethod()

    Declaration
    protected void RefreshSourceListCountMethod()

    RemoveColumnsCore(Int32, Int32, GridMoveCellsState)

    Declaration
    protected override void RemoveColumnsCore(int removeAtColumnIndex, int count, GridMoveCellsState moveCellsState)
    Parameters
    Type Name Description
    System.Int32 removeAtColumnIndex
    System.Int32 count
    GridMoveCellsState moveCellsState
    Overrides
    GridModel.RemoveColumnsCore(Int32, Int32, GridMoveCellsState)

    RemoveRowsCore(Int32, Int32, GridMoveCellsState)

    Declaration
    protected override void RemoveRowsCore(int removeAtRowIndex, int count, GridMoveCellsState moveCellsState)
    Parameters
    Type Name Description
    System.Int32 removeAtRowIndex
    System.Int32 count
    GridMoveCellsState moveCellsState
    Overrides
    GridModel.RemoveRowsCore(Int32, Int32, GridMoveCellsState)

    ResizeDataColumnsToFit(GridRangeInfo, GridResizeToFitOptions)

    Resizes a range of columns to optimally fit contents of the specified range of cells and given options.

    Declaration
    public bool ResizeDataColumnsToFit(GridRangeInfo range, GridResizeToFitOptions options)
    Parameters
    Type Name Description
    GridRangeInfo range

    The range of cells to be analyzed.

    GridResizeToFitOptions options

    Specifies whether row or column headers should be included; if size can be reduced and if covered cells should be considered.

    Returns
    Type Description
    System.Boolean

    True if any changes were made; False if all sizes were already optimal.

    ResumeEvents()

    Declaration
    public void ResumeEvents()

    Serialize(String)

    Serializes the specified properties in the GridDataTableModel.

    Declaration
    public override void Serialize(string fileName)
    Parameters
    Type Name Description
    System.String fileName
    Overrides
    GridModel.Serialize(String)

    SerializeAsString()

    Serializes the GridDataTableModel properties as string.

    Declaration
    public override string SerializeAsString()
    Returns
    Type Description
    System.String
    Overrides
    GridModel.SerializeAsString()

    SerializeToStream(TextWriter)

    Serializes to stream.

    Declaration
    public override void SerializeToStream(TextWriter textWriter)
    Parameters
    Type Name Description
    System.IO.TextWriter textWriter

    The text writer.

    Overrides
    GridModel.SerializeToStream(TextWriter)

    SetTableDirty()

    Declaration
    public void SetTableDirty()

    ShouldHideRow(Int32, Boolean)

    Declaration
    protected override bool ShouldHideRow(int rowIndex, bool hide)
    Parameters
    Type Name Description
    System.Int32 rowIndex
    System.Boolean hide
    Returns
    Type Description
    System.Boolean
    Overrides
    GridModel.ShouldHideRow(Int32, Boolean)

    SortColumnMethod(GridDataVisibleColumn)

    Declaration
    protected virtual void SortColumnMethod(GridDataVisibleColumn column)
    Parameters
    Type Name Description
    GridDataVisibleColumn column

    SuspendEvents()

    Declaration
    public void SuspendEvents()

    UpdateSelectedRanges()

    Declaration
    public virtual void UpdateSelectedRanges()

    WireSourceList(Boolean)

    Wires the source list. This also will only refresh the internal collections without refreshing the whole grid itself.

    Declaration
    public void WireSourceList(bool needsWholeGridRefresh)
    Parameters
    Type Name Description
    System.Boolean needsWholeGridRefresh

    if set to true [needs whole grid refresh].

    Events

    ColumnsReset

    Raised whenever the columns is reset. This occurs when data is grouped / ungrouped.

    Declaration
    public event EventHandler ColumnsReset
    Event Type
    Type Description
    System.EventHandler

    FilterChanged

    Declaration
    public event GridFilterEventHandler FilterChanged
    Event Type
    Type Description
    GridFilterEventHandler

    FilterChanging

    Declaration
    public event GridFilterEventHandler FilterChanging
    Event Type
    Type Description
    GridFilterEventHandler

    Initialized

    Declaration
    public event EventHandler Initialized
    Event Type
    Type Description
    System.EventHandler

    QueryUnboundCellInfo

    Declaration
    public event GridDataQueryUnboundCellInfoEventHandler QueryUnboundCellInfo
    Event Type
    Type Description
    GridDataQueryUnboundCellInfoEventHandler

    QueryUnboundColumnValue

    Declaration
    public event GridDataQueryUnboundColumnCellEventHandler QueryUnboundColumnValue
    Event Type
    Type Description
    GridDataQueryUnboundColumnCellEventHandler

    QueryVisibleColumnInfo

    Declaration
    public event QueryVisibleColumnInfoEventHandler QueryVisibleColumnInfo
    Event Type
    Type Description
    QueryVisibleColumnInfoEventHandler

    Implements

    IGridVolatileCellStylesHost
    IOperationFeedbackProvider
    System.IDisposable
    System.ComponentModel.ISupportInitialize

    Extension Methods

    GridDataTableModelHelper.IsInGroupRecordIndex(GridDataTableModel, Int32)
    GridDataTableModelHelper.ResolveIndexToGroupPosition(GridDataTableModel, Int32)
    GridDataTableModelHelper.ResolveIndexToStackHeaderRowPosition(GridDataTableModel, Int32)
    GridDataTableModelHelper.ResolveEndIndexOfStackedHeaderColumn(GridDataTableModel, GridDataStackedHeaderRow, GridDataStackedHeaderColumn)
    GridDataTableModelHelper.ResolveStartIndexOfStackedHeaderColumn(GridDataTableModel, GridDataStackedHeaderRow, GridDataStackedHeaderColumn, Int32)
    GridDataTableModelHelper.ResolveIndexToStackHeaderColumn(GridDataTableModel, GridDataStackedHeaderRow, Int32)
    GridDataTableModelHelper.ResolveIndexToSummaryPosition(GridDataTableModel, Int32)
    GridDataTableModelHelper.IsInFilterBarPosition(GridDataTableModel, Int32)
    GridDataTableModelHelper.IsInSummaryPosition(GridDataTableModel, Int32)
    GridDataTableModelHelper.ResolveGroupPositionToIndex(GridDataTableModel, Int32)
    GridDataTableModelHelper.AdjustParents(GridDataTableModel, GridDataChildTableModel, Boolean)
    GridDataTableModelHelper.AdjustModelWidth(GridDataTableModel, Double)
    GridDataTableModelHelper.GetNestedTableIndentedValue(GridDataTableModel, ref Int32)
    GridDataTableModelHelper.GetOrderForChildTableBasedOnIndex(GridDataTableModel, Int32)
    GridDataTableModelHelper.ResolveStartIndexBasedOnPosition(GridDataTableModel)
    GridDataTableModelHelper.IsInHiddenState(GridDataTableModel, Int32)
    GridDataTableModelHelper.IsInNestedIndex(GridDataTableModel, Int32)
    GridDataTableModelHelper.IsInUnboundRow(GridDataTableModel, Int32)
    GridDataTableModelHelper.RefreshParentGrids(GridDataTableModel)
    GridDataTableModelHelper.ResolveDefaultColumnOffset(GridDataTableModel)
    GridDataTableModelHelper.ResolveDefaultNestedIndex(GridDataTableModel)
    GridDataTableModelHelper.ResolveIndexToRecordPosition(GridDataTableModel, Int32)
    GridDataTableModelHelper.ResolvePositionToIndex(GridDataTableModel, Int32)
    GridDataTableModelHelper.ResolveGroupRecordPositionToIndex(GridDataTableModel, Int32)
    GridDataTableModelHelper.ResolvePositionToVisibleColumnIndex(GridDataTableModel, Int32)
    GridDataTableModelHelper.ResolveVisibleColumnIndexToPosition(GridDataTableModel, Int32)
    GridDataTableModelHelper.ExpandRange(GridDataTableModel, GridRangeInfo)
    GridDataTableModelHelper.ResolveStartIndexOfGroup(GridDataTableModel, Group)
    GridDataTableModelHelper.ResolveAddNewPositionInGrid(GridDataTableModel)
    GridDataTableModelHelper.ResolveFilterBarPositionInGrid(GridDataTableModel)
    GridDataControlExportExtensions.ExportToCSV(GridDataTableModel, String)
    GridDataControlExportExtensions.ExportToCSV(GridDataTableModel, String, String)
    GridDataControlExportExtensions.ExportToCSV(GridDataTableModel, GridRangeInfo, String)
    GridDataControlExportExtensions.ExportToCSV(GridDataTableModel, GridRangeInfo, String, String)
    GridModelExportExtensions.ExportToExcel(GridModel, GridRangeInfo, ExcelEngine, Int32, IRange)
    GridModelExportExtensions.ExportToExcel(GridModel, GridRangeInfo, ExcelEngine, Int32, IRange, GridCellExportToExcelHandler)
    GridModelExportExtensions.ExportToExcel(GridModel, String, ExcelVersion)
    GridModelExportExtensions.ExportToExcel(GridModel, String, ExcelVersion, GridCellExportToExcelHandler)
    GridModelExportExtensions.ExportToExcel(GridModel, IWorksheet, ExcelExportingOptions)
    GridModelExportExtensions.ExportToExcel(GridModel, GridRangeInfo, IWorksheet, IRange)
    GridModelExportExtensions.ExportToExcel(GridModel, GridRangeInfo, IWorksheet, IRange, GridCellExportToExcelHandler)
    GridModelExportExtensions.ExportToExcel(GridModel, GridRangeInfo, IWorksheet, IRange, ExcelExportingOptions)
    GridModelExportExtensions.ExportToCSV(GridModel, String)
    GridModelExportExtensions.ExportToCSV(GridModel, GridRangeInfo, String)
    GridModelImportExtensions.ImportFromExcel(GridModel, Stream)
    GridModelImportExtensions.ImportFromExcel(GridModel, Stream, GridCellImportFromExcelHandler)
    GridModelImportExtensions.ImportFromExcel(GridModel, String)
    GridModelImportExtensions.ImportFromExcel(GridModel, String, GridCellImportFromExcelHandler)
    GridModelImportExtensions.ImportFromExcel(GridModel, IWorksheet)
    GridModelImportExtensions.ImportFromExcel(GridModel, IWorksheet, GridCellImportFromExcelHandler)
    GridModelImportExtensions.ImportFromExcelToVirtualGrid(GridModel, IWorkbook, IWorksheet, GridCellImportFromExcelHandler)
    GridPdfExportExtension.ExportToPdfGridDocument(GridModel, GridRangeInfo)
    GridPdfExportExtension.ExportToPdfGridDocument(GridModel, GridRangeInfo, GridCellExportToPdfHandler)
    GridPdfExportExtension.ExportToPdfGridDocument(GridModel, GridRangeInfo, DrawPdfHeaderFooterEventHandler, DrawPdfHeaderFooterEventHandler)
    GridPdfExportExtension.ExportToPdfGridDocument(GridModel, GridRangeInfo, GridCellExportToPdfHandler, DrawPdfHeaderFooterEventHandler, DrawPdfHeaderFooterEventHandler)
    GridPdfExportExtension.ExportToPdfGridDocument(GridModel, GridRangeInfo, String)
    GridPdfExportExtension.ExportToPdfGridDocument(GridModel, GridRangeInfo, GridCellExportToPdfHandler, String)
    GridPdfExportExtension.ExportToPdfGridDocument(GridModel, GridRangeInfo, DrawPdfHeaderFooterEventHandler, DrawPdfHeaderFooterEventHandler, String)
    GridPdfExportExtension.ExportToPdfGridDocument(GridModel, GridRangeInfo, GridCellExportToPdfHandler, DrawPdfHeaderFooterEventHandler, DrawPdfHeaderFooterEventHandler, String)
    GridPdfExportExtension.ExportToPdfGrid(GridModel, GridRangeInfo)
    GridPdfExportExtension.ExportToPdfGrid(GridModel, GridRangeInfo, GridCellExportToPdfHandler)
    GridPdfExportExtension.ExportToPdf(GridModel, GridRangeInfo, ExportToPdfOptions)
    GridPdfExportExtension.ExportToPdfDocument(GridModel, GridRangeInfo, ExportToPdfOptions)
    GridPdfExportExtension.ExportToPdfLightTableDocument(GridModel, GridRangeInfo, String)
    GridPdfExportExtension.ExportToPdfLightTableDocument(GridModel, GridRangeInfo, DrawPdfHeaderFooterEventHandler, DrawPdfHeaderFooterEventHandler, String)
    GridPdfExportExtension.ExportToPdfLightTableDocument(GridModel, GridRangeInfo)
    GridPdfExportExtension.ExportToPdfLightTableDocument(GridModel, GridRangeInfo, DrawPdfHeaderFooterEventHandler, DrawPdfHeaderFooterEventHandler)
    GridPdfExportExtension.ExportToPdfLightTable(GridModel, GridRangeInfo)
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved