Interprets and creates the binding required between a cell and its editor at runtime.
| Visual Basic (Declaration) | |
|---|---|
<MarkupExtensionReturnTypeAttribute(System.Object)> Public Class CellEditorBindingExtension Inherits MarkupExtension | |
| C# | |
|---|---|
[MarkupExtensionReturnTypeAttribute(System.Object)] public class CellEditorBindingExtension : MarkupExtension | |
All examples in this topic assume that the grid is bound to the Orders table of the Northwind database, unless stated otherwise.
The following examples demonstrates how to change the edit template of the cell editor for the ShipVia column to a Slider control.
| XAML | Copy Code |
|---|---|
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"> | |
The following example demonstrates how to change the edit template of the cell editor for the Freight column to a custom calculator control. The C# code for the Calculate method called in the buttons' Click event simply calculates the new equation and is not provided. To shorten the code, some of the Button and KeyActivationGesture declarations have been removed.
| XAML | Copy Code |
|---|---|
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"> | |
The following example demonstrates how to provide a default cell editor for columns that have an Int32 data type.
| XAML | Copy Code |
|---|---|
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid" | |
System.Object
System.Windows.Markup.MarkupExtension
Xceed.Wpf.DataGrid.Markup.CellEditorBindingExtension
Supported Operating Systems: Windows Server 2003 Service Pack 1; Windows Vista; Windows XP Service Pack 2
Reference
CellEditorBindingExtension MembersXceed.Wpf.DataGrid.Markup Namespace
Copy Code