Class DataRow
Represents the class that holds the data of the rows.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class DataRow : DataRowBase, IDisposable
Constructors
DataRow()
Initializes a new instance of the DataRow class.
Declaration
public DataRow()
Methods
CreateDetailsViewExpanderColumn(Int32)
Creates the DetailsView expander column.
Declaration
protected DataColumnBase CreateDetailsViewExpanderColumn(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the row. |
Returns
Type | Description |
---|---|
DataColumnBase | Returns the created expander column. |
CreateGroupExpanderColumn(Int32)
Adding the expander column for the spanned data row.
Declaration
protected DataColumnBase CreateGroupExpanderColumn(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the column that needs to be changed as the expander. |
Returns
Type | Description |
---|---|
DataColumnBase | Returns the new expander column. |
CreateIndentColumn(Int32)
Overridden to create the indent column at the given index.
Declaration
protected override DataColumnBase CreateIndentColumn(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index that needs to be added as the indent. |
Returns
Type | Description |
---|---|
DataColumnBase | Returns the new indent column. |
Overrides
CreatePreviewRowExpanderColumn(Int32)
Creates the PreviewRow expander column.
Declaration
protected DataColumnBase CreatePreviewRowExpanderColumn(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the row. |
Returns
Type | Description |
---|---|
DataColumnBase | Returns the created expander column. |
CreateRowHeaderColumn(Int32)
Creates the row header for the desired row.
Declaration
protected void CreateRowHeaderColumn(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Index of the row. |
GetColumnSize(Int32, Boolean)
Overridden to gets the size of the given column index.
Declaration
protected override double GetColumnSize(int index, bool lineNull)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the column. |
System.Boolean | lineNull | Indicates whether to retrieve the size from the visible lines or from the range. |
Returns
Type | Description |
---|---|
System.Double | Returns the size of the column. |
Overrides
GetRowSize(DataColumnBase, Boolean)
Gets the row size of the given DataColumnbase.
Declaration
protected override double GetRowSize(DataColumnBase dataColumn, bool lineNull)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | The DataColumnBase of the cell. |
System.Boolean | lineNull | Indicates whether to retrieve the size from the visible lines or from the range. |
Returns
Type | Description |
---|---|
System.Double | Returns the size of the Row. |
Overrides
OnGenerateVisibleColumns(VisibleLinesCollection)
Overridden to update the VisibleColumns collection while generating the visible columns.
Declaration
protected override void OnGenerateVisibleColumns(VisibleLinesCollection visibleColumnLines)
Parameters
Type | Name | Description |
---|---|---|
VisibleLinesCollection | visibleColumnLines | The columns that are need to be generated. |