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.
Syncfusion Feedback

add a new column to datagrid runtime

Thread ID:

Created:

Updated:

Platform:

Replies:

61177 May 19,2007 12:37 PM UTC May 21,2007 03:27 PM UTC Windows Forms 1
loading
Tags: GridControl
anderson
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\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

CONFIRMATION

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.

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

;