Hi @Nisha_K21 ,
Assuming column Price is of the type double
totalPrice = yourDataTable.AsEnumerable().Sum(Function(row) row.Field(Of Double)("Price"))
Explanation
yourDataTable
: Replace this with the name of yourDataTable
variable.row.Field(Of Double)("Price")
: Accesses each value in the"Price"
column as aDouble
.totalPrice
: This should be a variable of typeDouble
to store the sum.