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
close icon

add a new column to datagrid runtime

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.

1 Reply

HA haneefm Syncfusion Team 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\4.4.0.49\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.
http://www.syncfusion.com/support/forums/message.aspx?&MessageID=53010

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon