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

Adding calculated column in datagrid

how do I add a column which has calculated values from 2 columns in a datagrid. eg. itemno Unitcost NoUnits Total ------------------------------------------ 1a 2-00 3 ? 2f 11-00 7 ? How do i calculate the total column

1 Reply

AD Administrator Syncfusion Team January 8, 2003 06:52 AM UTC

You can add an Expression column to the underlying DataTable. George Shepherd's Windows Forms FAQ contains an entry entitled: How do I use the DataColumn.Expression property to add a computed/combined column to my datagrid? Check it out at: http://www.syncfusion.com/faq/winforms/search/904.asp

Loader.
Live Chat Icon For mobile
Up arrow icon