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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to update columns in datagrid

Thread ID:





116406 May 20,2014 10:27 AM UTC May 23,2014 08:20 AM UTC WinRT 1
Tags: SfDataGrid
Asked On May 20, 2014 10:27 AM UTC


I am trying to update my columns in the below figure but the update is not happening.

whenever I update the quantity, the total rate should also get updated. But this isn't happening. what is the appropriate way to do it?

Thanks in Advance

Saravanan C [Syncfusion]
Replied On May 23, 2014 08:20 AM UTC

Hi Madhu,


Thank you for contacting Syncfusion Support.


We have analyzed your requirement and you can achieve your datagrid columns like in the figure you attached by using GridUnBoundColumn and setting the Expression=Quantity*Unit rate. And if you are dynamically changing the Quantity or Unit rate values, then you need to set the property  LiveDataUpdateMode=”AllowDataShaping” for updating the Expression value. Please find the code snippet in below:


Code Snippet[XAML]:


<Grid Background=”{StaticResource ApplicationPageBackgroundThemeBrush}”>

    <yncfusion:SfDataGrid  AllowDraggingColumns=”True” AutoGenerateColumns=”False”

                            ColumnSizer=”Star” AllowEditing=”True”

                            ItemsSource=”{Binding Detailscollection}”




            <yncfusion:GridUnBoundColumn Expression=”Quantity*Amount”                      MappingName=”Total”/>





We have prepared a sample based on your requirement. Please find the sample in the attachments.


Please let us know if  this solution helps you.



Saravanan C

Attachment: UnBoundColumnExpression_61dcef73.zip


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon