WinUI

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataColumn

    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.SetBindings(UIElement)
    DataColumnBase.OnPropertyChanged(String)
    DataColumnBase.CompareTo(Object)
    DataColumnBase.Dispose()
    DataColumnBase.Dispose(Boolean)
    DataColumnBase.IsCurrentCell
    DataColumnBase.IsSelectedColumn
    DataColumnBase.IsEditing
    DataColumnBase.ColumnIndex
    DataColumnBase.RowIndex
    DataColumnBase.GridColumn
    DataColumnBase.IndentColumnType
    DataColumnBase.ColumnElement
    DataColumnBase.GridUnBoundRowEventsArgs
    DataColumnBase.IsSpannedColumn
    DataColumnBase.Element
    DataColumnBase.Index
    DataColumnBase.Renderer
    DataColumnBase.RowSpan
    DataColumnBase.ColumnSpan
    DataColumnBase.GridCellRegion
    DataColumnBase.PropertyChanged
    Namespace: Syncfusion.UI.Xaml.DataGrid
    Assembly: Syncfusion.Grid.WinUI.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 Description
    Microsoft.UI.Xaml.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 - 2023 Syncfusion Inc. All Rights Reserved