To provide a custom cell editor for a column you would add your custom editor to the CellEditingTemplate. The following XAML example demonstrates how to add a custom cell editor, such as a DatePicker, using the CellEditingTemplate property on a specific column.
In XAML
XAML |
Copy Code
|
---|---|
<c1:FlexGrid AutoGenerateColumns="False"> <c1:FlexGrid.Columns> <c1:GridColumn Binding="Hired"> <c1:GridColumn.CellEditingTemplate> <DataTemplate> <DatePicker Date="{Binding Hired, Mode=TwoWay}"/> </DataTemplate> </c1:GridColumn.CellEditingTemplate> </c1:GridColumn> </c1:FlexGrid.Columns> </c1:FlexGrid> |