Class DataColumnBase
Represents the base class for the data column.
Implements
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class DataColumnBase : IElement, INotifyPropertyChanged, IComparable, IDisposable
Constructors
DataColumnBase()
Declaration
public DataColumnBase()
Properties
ColumnIndex
Gets the index of the data column.
Declaration
public int ColumnIndex { get; }
Property Value
Type |
---|
System.Int32 |
ColumnSpan
Gets the count of the spanned columns.
Declaration
public int ColumnSpan { get; }
Property Value
Type |
---|
System.Int32 |
ColumnType
Gets the constants that specify the type of column in SFDataGrid.
Declaration
public ColumnType ColumnType { get; }
Property Value
Type |
---|
ColumnType |
DataRow
Gets or sets the DataRowBase of the control.
Declaration
protected DataRowBase DataRow { get; set; }
Property Value
Type |
---|
DataRowBase |
GridColumn
Gets the GridColumn of the table.
Declaration
public GridColumn GridColumn { get; }
Property Value
Type |
---|
GridColumn |
Index
Gets the index of the column.
Declaration
public int Index { get; }
Property Value
Type |
---|
System.Int32 |
IsCurrentCell
Gets a value indicating whether the column is current cell or not.
Declaration
public bool IsCurrentCell { get; }
Property Value
Type |
---|
System.Boolean |
IsEditing
Gets a value indicating whether the column is editing or not.
Declaration
public bool IsEditing { get; }
Property Value
Type |
---|
System.Boolean |
IsSelected
Gets a value indicating whether the cell is selected or not.
Declaration
public bool IsSelected { get; }
Property Value
Type |
---|
System.Boolean |
IsSpannedColumn
Gets a value indicating whether the column is spanned or not.
Declaration
public bool IsSpannedColumn { get; }
Property Value
Type |
---|
System.Boolean |
IsValid
Gets a value indicating whether the cell is valid or not.
Declaration
public bool IsValid { get; }
Property Value
Type |
---|
System.Boolean |
Renderer
Gets the renderer of the data column.
Declaration
public IGridCellRenderer<TableControl> Renderer { get; }
Property Value
Type |
---|
IGridCellRenderer<TableControl> |
UnboundRowInfo
Gets or sets the QueryUnboundRowInfoArgs value used to draw the unbound row cells.
Declaration
public QueryUnboundRowInfoArgs UnboundRowInfo { get; set; }
Property Value
Type |
---|
QueryUnboundRowInfoArgs |
Methods
CompareTo(Object)
Compares the column with the given object.
Declaration
public int CompareTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object that needs to be compared. |
Returns
Type | Description |
---|---|
System.Int32 | Return 1, if the given column index is less than the current column. Return -1, if the given column index is greater than the current column index. Return 0, when both index are same. |
Dispose()
Disposes of the resources used by the DataColumnBase.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes of the resources used by the RowGenerator.
Declaration
protected virtual void Dispose(bool isDispose)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDispose | Indicates whether the call is from the Dispose method. |
OnPropertyChanged(String)
Raises the PropertyChanged event.
Declaration
public void OnPropertyChanged(string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | The name of the property. |
Events
PropertyChanged
Occurs when the property value is changed.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
---|
System.ComponentModel.PropertyChangedEventHandler |