Dear all,
I have a datagrid bound with tempDataTable.
and DataTable Columns
Now I want to get SUM of "Amount" column and display it in a textbox. How can I do that.
can anyone help me please?
Thanks in advance
I have a datagrid bound with tempDataTable.
VB.NET:
Dim TempInvoiceData As TechManagement.DBComponents.ProductDB = New TechManagement.DBComponents.ProductDB
Dim DataTableName As String
tblTempInvoice = TempInvoiceData.Tempinvoice(DataTableName)
and DataTable Columns
VB.NET:
dt.Columns.Add(New DataColumn("Sno", GetType(Integer)))
dt.Columns.Add(New DataColumn("ProdID", GetType(String)))
dt.Columns.Add(New DataColumn("Description", GetType(String)))
dt.Columns.Add(New DataColumn("Qty", GetType(Integer)))
dt.Columns.Add(New DataColumn("Uprice", GetType(Integer)))
dt.Columns.Add(New DataColumn("Amount", GetType(Integer)))
Now I want to get SUM of "Amount" column and display it in a textbox. How can I do that.
can anyone help me please?
Thanks in advance