Add new row position within grouping level in sfdatagrid with grouping

Is it possible to have the addnewrow position within the sfdatagrid group and then have the new record added to the group selected?

I am trying to get the addnewrow to appear within the groupings but it only appears either on the top or bottom of the grid.

I have attached a photo of what i mean.



Attachment: Sfdatagrid2_f81f8ed1.jpg

3 Replies

SB Sweatha Bharathi Syncfusion Team August 7, 2025 01:25 PM UTC

Hi JP ,

We have reviewed your query. In WinForms SfDataGrid , currently supports positioning the AddNewRow only at the top or bottom of the grid using the AddNewRowPosition property. Currently, it is not possible to position the AddNewRow within specific grouped rows.
By default, when you add a new record using the AddNewRow, it will be added to the underlying collection. The grid will then refresh and display the new record in the appropriate group based on the grouping criteria. We have attached video for your reference.
We appreciate your understanding and patience.

Regards,
Sweatha B



Attachment: Video_57f28f9b.zip


JP JP August 8, 2025 04:46 AM UTC

Thank you. Can i request that this feature be included in future releases? I will modify my system design and code accordingly.



SB Sweatha Bharathi Syncfusion Team August 8, 2025 12:36 PM UTC

JP,
We greatly appreciate your feedback and dedication to improving our product.
Currently, the DataGrid allows adding new rows only at the top or bottom of the entire data list, and not within individual grouped sections. This limitation is intentional due to the dynamic nature of grouped data:
When a new row is created, its inclusion in a particular group depends on the value given for the grouped column. If the value for this column does not match the current group, the row will be automatically reassigned to a different group, resulting in the key (group assignment) changing. This ensures data consistency and integrity but means a row cannot reliably be added “within” a group from the UI.
Additionally, in our review of several leading industry-standard DataGrid controls, we found that they also do not support adding new rows within grouped rows, for similar reasons related to data structure and grouping logic.
For these reasons, we are unable to consider this feature at this time. Thank you for your understanding and continued support.

Loader.
Up arrow icon