code:Basically I wanna sum up all the values in a datatable corresponding only for a certain column.lblTotal.Text = gt.Compute("SUM(QuantityOrdered)", "QuantityOrdered Is Like'" & ddlPr_Name.SelectedValue & "'")
code:Thanks for pointing me in the right direction.lblTotal.Text = gt.Compute("SUM(QuantityOrdered)", "ProductName Like '" & ddlPr_Name.SelectedValue & "'")