Class RowHeightManager
Represents a class that manages the row heights operation in SfDataGrid.
Inheritance
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class RowHeightManager
Constructors
RowHeightManager()
Initializes a new instance of the RowHeightManager class.
Declaration
public RowHeightManager()
Methods
Contains(Int32, RowRegion)
Determines whether the given index is contained in specified region.
Declaration
public bool Contains(int index, RowRegion region)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The corresponding index to check whether it is contained in specified region. |
RowRegion | region | The row region. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the index is present in specified region; otherwise, false. |
Reset()
Marks the row heights of all rows in a view as dirty.
Declaration
public void Reset()
ResetBody()
Marks the row heights of the body region as dirty, to refresh the row height when the grouping, sorting and the view is updated.
Declaration
public void ResetBody()
ResetFooter()
Marks the row heights of the footer region as dirty, to refresh the row height.
Declaration
public void ResetFooter()
ResetHeader()
Marks the row heights of the header region as dirty, to refresh the row height.
Declaration
public void ResetHeader()
SetDirty(Int32)
Marks the row height of the given row index as dirty, when the row is invalidated at run time.
Declaration
public void SetDirty(int rowIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | The index of the row. |
UpdateBody(Int32, Int32, NotifyCollectionChangedAction)
Updates the rows in body region when the view is refreshed.
Declaration
public void UpdateBody(int index, int count, NotifyCollectionChangedAction action)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The start index to update. |
System.Int32 | count | The number of rows that needs to be updated. |
System.Collections.Specialized.NotifyCollectionChangedAction | action | The action that caused to update the body region. |
UpdateRegion(Int32, Int32, RowRegion)
Updates the region of rows for the specified start and end index.
Declaration
public void UpdateRegion(int start, int end, RowRegion region)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | start | The start index to update. |
System.Int32 | end | The end index to update. |
RowRegion | region | The region that is to be updated. |