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.
Unfortunately, activation email could not send to your email. Please try again.

add a new column to datagrid runtime

Thread ID:





61177 May 19,2007 08:37 AM May 21,2007 11:27 AM Windows Forms 1
Tags: GridControl
Asked On May 19, 2007 08:37 AM

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 11:27 AM

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.

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.