BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi Tony,
Thank you for contacting Syncfusion Support.
We analyzed your query. We regret to inform you that UpDownEditor column is not supported in SfDataGrid WPF. But, you can achieve your requirement by using GridTemplateColumn in SfDataGrid. In <GridTemplateColumn.EditTemplate> , we can set the UpDown Coloumn.
Please refer the following code snippet and sample in the following location:
Code Snippet:
<syncfusion:GridTemplateColumn MappingName="OrderID"> <syncfusion:GridTemplateColumn.CellTemplate> <DataTemplate> <TextBlock Text="{Binding OrderID}"/> </DataTemplate> </syncfusion:GridTemplateColumn.CellTemplate> <syncfusion:GridTemplateColumn.EditTemplate> <DataTemplate> <syncfusion:UpDown Value="{Binding OrderID}" MaxValue="1010" MinValue="1000"/> </DataTemplate> </syncfusion:GridTemplateColumn.EditTemplate> </syncfusion:GridTemplateColumn> |
Regards,
Farjana Parveen A
Hi Tony,
Sorry about the inconvenience caused.
We analyzed your query. We regret to inform you that text in the GridTemplateColumn is not selected while double clicked the cell. You can achieve your requirement by CustomColumn and CustomRender concept. We can create the column in custom and we set the CustomRender for that column. In the Render we specified our column type UpDown.
Please refer the sample in the following location:
Regards,
Farjana Parveen
Hi Tony,
Sorry about the inconvenience caused.
We analyzed your query. We regret to inform you that while editing the value it is updated in the modelview this is a behavior of SfDataGrid. Because both the underlying collection and the cellvalues is in the binding state.
Regards,
Farjana Parveen A