menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataColumn - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DataColumn

    Represents a class that provides the common functionalities of DataColumns in SfDataGrid.

    Inheritance
    System.Object
    DataColumnBase
    DataColumn
    Implements
    IColumnElement
    IElement
    System.ComponentModel.INotifyPropertyChanged
    System.IComparable
    System.IDisposable
    Inherited Members
    DataColumnBase.ColumnElement
    DataColumnBase.ColumnIndex
    DataColumnBase.ColumnSpan
    DataColumnBase.CompareTo(Object)
    DataColumnBase.Dispose()
    DataColumnBase.Dispose(Boolean)
    DataColumnBase.Element
    DataColumnBase.GridCellRegion
    DataColumnBase.GridColumn
    DataColumnBase.GridUnBoundRowEventsArgs
    DataColumnBase.IndentColumnType
    DataColumnBase.Index
    DataColumnBase.IsCurrentCell
    DataColumnBase.IsEditing
    DataColumnBase.IsSelectedColumn
    DataColumnBase.IsSpannedColumn
    DataColumnBase.OnPropertyChanged(String)
    DataColumnBase.PropertyChanged
    DataColumnBase.Renderer
    DataColumnBase.RowIndex
    DataColumnBase.RowSpan
    DataColumnBase.SetBindings(UIElement)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    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
    DataColumnBase.OnInitializeColumnElement(Object, Boolean)

    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
    DataColumnBase.UpdateBinding(Object, Boolean)

    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
    DataColumnBase.UpdateCellStyle(Object)

    Implements

    IColumnElement
    IElement
    System.ComponentModel.INotifyPropertyChanged
    System.IComparable
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved