Class TreeGridRowGenerator
Represents a class that provides the generation of tree grid rows.
Inheritance
Namespace: Syncfusion.UI.Xaml.TreeGrid
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class TreeGridRowGenerator : Object, ITreeGridRowGenerator, IDisposable
Constructors
TreeGridRowGenerator(SfTreeGrid)
Initializes a new instance of TreeGridRowGenerator class.
Declaration
public TreeGridRowGenerator(SfTreeGrid owner)
Parameters
Type | Name | Description |
---|---|---|
SfTreeGrid | owner | The SfTreeGrid. |
Properties
Items
Declaration
public List<TreeDataRowBase> Items { get; set; }
Property Value
Type |
---|
System.Collections.Generic.List<TreeDataRowBase> |
Owner
Gets or sets the SfTreeGrid.
Declaration
public SfTreeGrid Owner { get; set; }
Property Value
Type |
---|
SfTreeGrid |
Methods
ApplyColumnSizerOnInitial(Double)
Invoked to apply the column sizer.
Declaration
public void ApplyColumnSizerOnInitial(double availableWidth)
Parameters
Type | Name | Description |
---|---|---|
System.Double | availableWidth | The corresponding available width. |
ColumnHiddenChanged(HiddenRangeChangedEventArgs)
Invoked when the hidden state of column changed.
Declaration
public void ColumnHiddenChanged(HiddenRangeChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
HiddenRangeChangedEventArgs | args | The HiddenRangeChangedEventArgs instance containing the event data. |
ColumnInserted(Int32, Int32)
Invoked when the column inserted.
Declaration
public void ColumnInserted(int index, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The specified index. |
System.Int32 | count | The count. |
ColumnRemoved(Int32, Int32)
Invoked when the column removed.
Declaration
public void ColumnRemoved(int index, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The corresponding index. |
System.Int32 | count | The count. |
Dispose()
Disposes all the resources used by the TreeGridRowGenerator class.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes all the resources used by the TreeGridRowGenerator class.
Declaration
protected virtual void Dispose(bool isDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDisposing | Indicates whether the call is from Dispose method or from a finalizer. |
EnsureColumns(VisibleLinesCollection)
Ensures the columns.
Declaration
public void EnsureColumns(VisibleLinesCollection visibleColumns)
Parameters
Type | Name | Description |
---|---|---|
VisibleLinesCollection | visibleColumns | The corresponding visible columns. |
EnsureRows(VisibleLinesCollection)
Method to ensure or update the row associated properties like RowIndex, RowData, row state and its selection while scrolling and Data Manipulation Operation based on VisibleRows.
Declaration
public virtual void EnsureRows(VisibleLinesCollection visibleRows)
Parameters
Type | Name | Description |
---|---|---|
VisibleLinesCollection | visibleRows |
PregenerateRows(VisibleLinesCollection, VisibleLinesCollection)
Invoked to pregenerate rows.
Declaration
public void PregenerateRows(VisibleLinesCollection visibleRows, VisibleLinesCollection visibleColumns)
Parameters
Type | Name | Description |
---|---|---|
VisibleLinesCollection | visibleRows | The corresponding visible rows. |
VisibleLinesCollection | visibleColumns | The corresponding visible columns. |
ResetSelection()
Resets the selection.
Declaration
public void ResetSelection()
RowHiddenChanged(HiddenRangeChangedEventArgs)
Invoked when the hidden state of row changed.
Declaration
public void RowHiddenChanged(HiddenRangeChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
HiddenRangeChangedEventArgs | args | The HiddenRangeChangedEventArgs instance containing the event data. |
RowsArranged()
Invoked when the rows arranged.
Declaration
public void RowsArranged()
Explicit Interface Implementations
ITreeGridRowGenerator.Items
Declaration
IList<ITreeDataRowElement> ITreeGridRowGenerator.Items { get; }
Returns
Type |
---|
System.Collections.Generic.IList<ITreeDataRowElement> |