WPF

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridCellBoundWrapper - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridCellBoundWrapper

    This is a wrapper class that helps to bind a dependency property of an external WPF control with its cell bound value. This makes it possible to accommodate a data-bound template in grid cells.

    Inheritance
    System.Object
    GridCellBoundWrapper
    GridDataCellBoundWrapper
    Namespace: Syncfusion.Windows.Controls.Grid
    Assembly: Syncfusion.Grid.Wpf.dll
    Syntax
    public class GridCellBoundWrapper : DependencyObject

    Constructors

    GridCellBoundWrapper()

    Declaration
    public GridCellBoundWrapper()

    Fields

    CellBoundValueProperty

    Declaration
    public static readonly DependencyProperty CellBoundValueProperty
    Field Value
    Type Description
    System.Windows.DependencyProperty

    Properties

    CellBoundValue

    Gets or sets the CellBoundValue. This is a DependencyProperty exposed for the underlying object data source. The object can be binded to an external WPF control's DependencyProperty in Two-way mode. The changes reflected in the object would be passed on to the underlying object accordingly.

        <syncfusion:GridDataVisibleColumn MappingName="LastName" HeaderText="LastName"
    Width="90" >
                            <syncfusion:GridDataVisibleColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBox Text="{Binding
    Path=CellBoundValue, Mode=TwoWay}"
                                           Foreground="Black"
    syncfusion:VisualContainer.WantsMouseInput="True"/>
                                </DataTemplate>
                            </syncfusion:GridDataVisibleColumn.CellTemplate>
                        </syncfusion:GridDataVisibleColumn>
    Declaration
    public object CellBoundValue { get; set; }
    Property Value
    Type Description
    System.Object

    Style

    Specifies the cell style information.

    Declaration
    public GridStyleInfo Style { get; set; }
    Property Value
    Type Description
    GridStyleInfo

    Events

    ValueChanged

    Occurs when the cell bound value changes.

    Declaration
    public event EventHandler<GridDataValueEventArgs<object>> ValueChanged
    Event Type
    Type Description
    System.EventHandler<GridDataValueEventArgs<System.Object>>
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved