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.
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 |
---|
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 |
---|
System.Object |
Style
Specifies the cell style information.
Declaration
public GridStyleInfo Style { get; set; }
Property Value
Type |
---|
GridStyleInfo |
Events
ValueChanged
Occurs when the cell bound value changes.
Declaration
public event EventHandler<GridDataValueEventArgs<object>> ValueChanged
Event Type
Type |
---|
System.EventHandler<GridDataValueEventArgs<System.Object>> |