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

add a new column to datagrid runtime

Thread ID:





61177 May 19,2007 12:37 PM UTC May 21,2007 03:27 PM UTC WinForms 1
Tags: GridControl
Asked On May 19, 2007 12:37 PM UTC

i have a datagrid , bind it to a dataview ,
how do i can add a column to datagrid for calculte
(sum of two column) and view please help me.

haneefm [Syncfusion]
Replied On May 21, 2007 03:27 PM UTC

Hi Anderson,

This can be achieved in two ways. One technique will be to use an expression column in a underlying datasource(datatable). Another way will be to use an ExpressionFields in a grid. See this forum thread that deals with a similar issue, and also refer to the sample in \Syncfusion\Essential Studio\\windows\Grid.Grouping.Windows\Samples\FiltersAndExpressions\ExpressionField\ to know more about ExpressionField.

Also refer to the below forum thread for the pro and cons between grid's ExpressionFields and a computed columns in the datatable.

Best regards,


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