|
Queries |
Solutions | |||
|
When enablind datagrid, set the position in a new row with default values
|
Your requirement can be achieved by customize the Loaded and AddNewRowInitiating event in SfDataGrid. Please refer the below codes snippet, XMAL Code Snippet:
C# Code Snippet:
For more information related to AddNewRowInitiating event, please refer the user guide documentation,
UG Link: https://help.syncfusion.com/wpf/datagrid/data-manipulation#initializing-default-values-for-addnewrow
KB Link: https://www.syncfusion.com/kb/2501/how-to-set-default-values-for-columns-in-addnewrow C# Code Snippet:
For more information related to Loaded event, please refer the user guide documentation, KB Link: https://www.syncfusion.com/kb/2473/how-to-set-current-cell-on-particular-row-when-datagrid-loaded | |||
|
When new row is completed, move to a new row with default values
|
Your requirement can be achieved by customize the CurrentCellActivated event in SfDataGrid. Please refer the below codes snippet,
XMAL Code Snippet:
C# Code Snippet:
For more information related to CurrentCellActivated event, please refer the user guide documentation,
UG Link: https://help.syncfusion.com/wpf/datagrid/selection#currentcellactivated-event
KB Link: https://www.syncfusion.com/kb/6867/how-to-add-a-new-row-continuously-without-any-selection-to-next-row-in-wpf-datagrid |