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

Get a value equal to the sum of 2 columns in 1 line

there are 3 columns in Blazor Data Grid: "Sum", "Quantity", "Price". When 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 "Quantity" column value plus the "Price" column value?

4 Replies

OP OSCAR PEREZ April 29, 2023 06:54 PM UTC

I'll do set the rules in the entity class, encapsulated in the property value. This way you can continue using the controls without worrying about the data value changes and be wide use for the project.

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

Hi Duong,

Greetings from Syncfusion.

We have prepared an simple sample which updates a column value based on the other columns value. 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


Please let us know if you have any concerns.



Attachment: BlazorApp1_67a24b38.zip

DQ Duong Quoc May 8, 2023 08:54 AM UTC

In this path: "https://blazor.syncfusion.com/documentation/datagrid/dialog-editing#implement-calculated-column-inside-grid-dialog-editing". How do I switch to bulk editing mode?

NP Naveen Palanivel Syncfusion Team May 10, 2023 01:46 PM UTC

Hi Duong,

We checked your query,  we would like inform that for bulk editing mode ,we have a batch edit mode. We also have similar topics detailly in our  Blazor UG documentation link below . please refer the Ug documentation for more information. We also attached the simple sample based on your requirement in this forum

Reference : https://blazor.syncfusion.com/documentation/datagrid/batch-editing

Please let us know if you have any concerns.


Naveen Palanivel

Attachment: Blazor_24_3_2023_5273c715.zip

Live Chat Icon For mobile
Up arrow icon