Class GridDataTableModel
Represents the child tables in groups of PrimaryKey columns.
Inheritance
System.Object
GridDataTableModel
Implements
System.IDisposable
System.ComponentModel.ISupportInitialize
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
Fields
DefaultRowHeight
Declaration
public const double DefaultRowHeight = 24
Field Value
ExpandCollapseCellWidth
Declaration
public const double ExpandCollapseCellWidth = 24
Field Value
gridDataTable
private accessor for GridTable.
Declaration
protected GridDataTable gridDataTable
Field Value
Declaration
public const double HeaderRowHeight = 28
Field Value
inSerialization
Declaration
public bool inSerialization
Field Value
Properties
ColumnAutoSizer
Declaration
public GridDataControlColumnSizer ColumnAutoSizer { get; }
Property Value
CurrencyManager
Gets or sets the currency manager.
Declaration
public GridDataCurrentRecordManager CurrencyManager { get; }
Property Value
Grid
Declaration
public GridControlBase Grid { get; set; }
Property Value
GridVisualStyle
Gets or sets the grid visual style.
Declaration
public IGridDataVisualStyle GridVisualStyle { get; set; }
Property Value
InCollectionViewCurrency
Declaration
protected bool InCollectionViewCurrency { get; set; }
Property Value
InCurrencyManager
Declaration
protected bool InCurrencyManager { get; set; }
Property Value
IndentColumnStyle
Declaration
public GridStyleInfo IndentColumnStyle { get; }
Property Value
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
IsInFilter
Declaration
public bool IsInFilter { get; set; }
Property Value
IsInFilterOverride
Declaration
protected bool IsInFilterOverride { get; set; }
Property Value
IsInGroup
Declaration
public bool IsInGroup { get; }
Property Value
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
IsInSourceListChanged
Declaration
public bool IsInSourceListChanged { get; }
Property Value
IsInSuspend
Declaration
public bool IsInSuspend { get; }
Property Value
IsLoaded
Declaration
public bool IsLoaded { get; }
Property Value
IsSourceListReset
Declaration
public bool IsSourceListReset { get; protected set; }
Property Value
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
SourceList
Declaration
public IEnumerable SourceList { get; }
Property Value
Type |
Description |
System.Collections.IEnumerable |
Specifies the SourceList.
|
SourceListCount
Declaration
public int SourceListCount { get; }
Property Value
Table
Declaration
public GridDataTable Table { get; }
Property Value
TableProperties
Gets or sets the table descriptor.
Declaration
public GridDataTableProperties TableProperties { get; set; }
Property Value
UnboundRowsCount
Declaration
public int UnboundRowsCount { get; set; }
Property Value
View
Gets or sets the ICollectionViewAdv which interacts with the Model.
Declaration
public ICollectionViewAdv View { get; }
Property Value
Type |
Syncfusion.Windows.Data.ICollectionViewAdv |
Methods
add_FilterChanged(GridFilterEventHandler)
Declaration
public void add_FilterChanged(GridFilterEventHandler value)
Parameters
add_FilterChanging(GridFilterEventHandler)
Declaration
public void add_FilterChanging(GridFilterEventHandler value)
Parameters
add_QueryUnboundCellInfo(GridDataQueryUnboundCellInfoEventHandler)
Declaration
public void add_QueryUnboundCellInfo(GridDataQueryUnboundCellInfoEventHandler value)
Parameters
add_QueryUnboundColumnValue(GridDataQueryUnboundColumnCellEventHandler)
Declaration
public void add_QueryUnboundColumnValue(GridDataQueryUnboundColumnCellEventHandler value)
Parameters
add_QueryVisibleColumnInfo(QueryVisibleColumnInfoEventHandler)
Declaration
public void add_QueryVisibleColumnInfo(QueryVisibleColumnInfoEventHandler value)
Parameters
ApplyFont()
Declaration
BeginInit()
Declaration
CreateAutoSizer()
Declaration
protected override GridColumnAutoSizer CreateAutoSizer()
Returns
Overrides
CreateCollectionViewAdv(IEnumerable)
Declaration
public virtual ICollectionViewAdv CreateCollectionViewAdv(IEnumerable source)
Parameters
Type |
Name |
Description |
System.Collections.IEnumerable |
source |
|
Returns
Type |
Syncfusion.Windows.Data.ICollectionViewAdv |
Declaration
protected override GridMoveCellsState CreateGridMoveCellsState(IEditableLineSizeHost lineSizes)
Parameters
Returns
Overrides
CreateVolatileCellStyles()
Creates the volatile cell styles.
Declaration
protected override GridVolatileCellStyles CreateVolatileCellStyles()
Returns
Overrides
Deserialize(String)
Declaration
public override void Deserialize(string fileName)
Parameters
Type |
Name |
Description |
System.String |
fileName |
|
Overrides
DeserializeFromStream(TextReader)
Deserializes from stream.
Declaration
public override void DeserializeFromStream(TextReader textReader)
Parameters
Type |
Name |
Description |
System.IO.TextReader |
textReader |
The text reader.
|
Overrides
DeserializeFromString(String)
Declaration
public override void DeserializeFromString(string content)
Parameters
Type |
Name |
Description |
System.String |
content |
The content.
|
Overrides
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
EndInit()
Declaration
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 |
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 |
Syncfusion.Windows.Data.ICollectionViewAdv |
GetDynamicVisibleColumns()
Declaration
public GridDataVisibleColumns GetDynamicVisibleColumns()
Returns
GetFilters()
Declaration
protected ObservableCollection<IFilterDefinition> GetFilters()
Returns
Type |
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 |
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 |
System.Collections.Generic.Dictionary<System.String, System.Object> |
GetResolveStartIndexBasedOnPosition()
Declaration
protected int GetResolveStartIndexBasedOnPosition()
Returns
GetSourceList(Object)
Declaration
public virtual IEnumerable GetSourceList(object source)
Parameters
Type |
Name |
Description |
System.Object |
source |
|
Returns
Type |
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 |
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 |
System.Linq.Expressions.Expression<System.Func<System.String, System.Object, System.Object>> |
GetVisibleColumns()
Declaration
public GridDataVisibleColumns GetVisibleColumns()
Returns
GetVisualStyleDictionary(FrameworkElement)
Returns the VisualStyle ResourceDictionary.
Declaration
public ResourceDictionary GetVisualStyleDictionary(FrameworkElement element)
Parameters
Type |
Name |
Description |
System.Windows.FrameworkElement |
element |
|
Returns
Type |
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
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
OnClipboardCanPaste(GridCutPasteEventArgs)
Declaration
protected override void OnClipboardCanPaste(GridCutPasteEventArgs e)
Parameters
Overrides
Declaration
protected override ContextMenu OnContextMenuCreating()
Returns
Type |
System.Windows.Controls.ContextMenu |
Overrides
OnFilterChanged(GridFilterEventArgs)
Declaration
protected void OnFilterChanged(GridFilterEventArgs e)
Parameters
OnFilterChanging(GridFilterEventArgs)
Declaration
protected void OnFilterChanging(GridFilterEventArgs e)
Parameters
OnQueryBaseStyles(GridQueryBaseStylesEventArgs)
Declaration
protected override void OnQueryBaseStyles(GridQueryBaseStylesEventArgs e)
Parameters
Overrides
OnQueryCellInfo(GridQueryCellInfoEventArgs)
Declaration
protected override void OnQueryCellInfo(GridQueryCellInfoEventArgs e)
Parameters
Overrides
Declaration
protected override void OnQueryContextMenuInfo(GridQueryContextMenuInfoEventArgs e)
Parameters
Overrides
OnQueryCoveredRange(GridQueryCoveredRangeEventArgs)
Declaration
protected override void OnQueryCoveredRange(GridQueryCoveredRangeEventArgs e)
Parameters
Overrides
OnQueryVisibleColumnInfo(QueryVisibleColumnInfoArgs)
Declaration
protected virtual void OnQueryVisibleColumnInfo(QueryVisibleColumnInfoArgs args)
Parameters
OnRowsInserted(GridRangeInsertedEventArgs)
Declaration
protected override void OnRowsInserted(GridRangeInsertedEventArgs e)
Parameters
Overrides
OnRowsRemoved(GridRangeRemovedEventArgs)
Declaration
protected override void OnRowsRemoved(GridRangeRemovedEventArgs e)
Parameters
Overrides
OnUpdateAutoSizer(Boolean, Boolean)
Declaration
protected override void OnUpdateAutoSizer(bool applySizes, bool columnSizerChanged)
Parameters
Type |
Name |
Description |
System.Boolean |
applySizes |
|
System.Boolean |
columnSizerChanged |
|
Overrides
RaiseQueryVisibleColumnInfo(QueryVisibleColumnInfoArgs)
Declaration
public void RaiseQueryVisibleColumnInfo(QueryVisibleColumnInfoArgs e)
Parameters
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()
remove_FilterChanged(GridFilterEventHandler)
Declaration
public void remove_FilterChanged(GridFilterEventHandler value)
Parameters
remove_FilterChanging(GridFilterEventHandler)
Declaration
public void remove_FilterChanging(GridFilterEventHandler value)
Parameters
remove_QueryUnboundCellInfo(GridDataQueryUnboundCellInfoEventHandler)
Declaration
public void remove_QueryUnboundCellInfo(GridDataQueryUnboundCellInfoEventHandler value)
Parameters
remove_QueryUnboundColumnValue(GridDataQueryUnboundColumnCellEventHandler)
Declaration
public void remove_QueryUnboundColumnValue(GridDataQueryUnboundColumnCellEventHandler value)
Parameters
remove_QueryVisibleColumnInfo(QueryVisibleColumnInfoEventHandler)
Declaration
public void remove_QueryVisibleColumnInfo(QueryVisibleColumnInfoEventHandler value)
Parameters
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
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
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)
Declaration
public override void Serialize(string fileName)
Parameters
Type |
Name |
Description |
System.String |
fileName |
|
Overrides
SerializeAsString()
Declaration
public override string SerializeAsString()
Returns
Overrides
SerializeToStream(TextWriter)
Declaration
public override void SerializeToStream(TextWriter textWriter)
Parameters
Type |
Name |
Description |
System.IO.TextWriter |
textWriter |
The text writer.
|
Overrides
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
Overrides
SortColumnMethod(GridDataVisibleColumn)
Declaration
protected virtual void SortColumnMethod(GridDataVisibleColumn column)
Parameters
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
FilterChanged
Declaration
public event GridFilterEventHandler FilterChanged
Event Type
FilterChanging
Declaration
public event GridFilterEventHandler FilterChanging
Event Type
Initialized
Declaration
public event EventHandler Initialized
Event Type
QueryUnboundCellInfo
Declaration
public event GridDataQueryUnboundCellInfoEventHandler QueryUnboundCellInfo
Event Type
QueryUnboundColumnValue
Declaration
public event GridDataQueryUnboundColumnCellEventHandler QueryUnboundColumnValue
Event Type
QueryVisibleColumnInfo
Declaration
public event QueryVisibleColumnInfoEventHandler QueryVisibleColumnInfo
Event Type
Implements
System.IDisposable
System.ComponentModel.ISupportInitialize
Extension Methods