Class DataColumn
Represents a class that provides the common functionalities of DataColumns in SfDataGrid.
Implements
System.ComponentModel.INotifyPropertyChanged
System.IComparable
System.IDisposable
Inherited Members
Namespace: Syncfusion.UI.Xaml.Grid
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class DataColumn : DataColumnBase, IColumnElement, IElement, INotifyPropertyChanged, IComparable, IDisposable
Constructors
DataColumn()
Declaration
public DataColumn()
Methods
OnInitializeColumnElement(Object, Boolean)
Prepares the Column element based on the Visible column
Declaration
protected override FrameworkElement OnInitializeColumnElement(object dataContext, bool isInEdit)
Parameters
Type | Name | Description |
---|---|---|
System.Object | dataContext | |
System.Boolean | isInEdit |
Returns
Type |
---|
System.Windows.FrameworkElement |
Overrides
UpdateBinding(Object, Boolean)
Method which is update the binding and style information of the cell when we recycle the cell for scrolling.
Declaration
public override void UpdateBinding(object dataContext, bool updateCellStyle = true)
Parameters
Type | Name | Description |
---|---|---|
System.Object | dataContext | |
System.Boolean | updateCellStyle |
Overrides
UpdateCellStyle(Object)
When we scroll the Grid vertically row's will be recycled. While recycling we need to update the style info of all the cell's in old row. This property change call back will update the style info of all the cell element when the row index changed.
Declaration
public override void UpdateCellStyle(object dataContext)
Parameters
Type | Name | Description |
---|---|---|
System.Object | dataContext |
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged
System.IComparable
System.IDisposable