We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Sum of 1 column based on the remaining columns

there are 3 columns in Blazor Data Grid: "Sum", "Quantity", "Price". The user performs the "Edit" or "Add" function, when the user enters the "Quantity" column and the "Price" column, the Grid will automatically calculate the "Sum" column with the column value "Quantity" plus the column value "Price"


1 Reply

MS Monisha Saravanan Syncfusion Team May 1, 2023 12:23 PM UTC


Hi Duong,


Greetings from Syncfusion.


We have prepared an simple sample which updated a column value based on the other columns. Kindly check the attached sample and below attached documentation for your reference.


Reference: https://blazor.syncfusion.com/documentation/datagrid/how-to/calculate-column-value-based-on-other-columns

https://blazor.syncfusion.com/documentation/datagrid/dialog-editing#implement-calculated-column-inside-grid-dialog-editing


Please let us know if you have any concerns.


Regards,

Monisha


Attachment: BlazorApp1_529720d6.zip

Loader.
Up arrow icon