Datagrid Row
-
HI How can i calculate datagrid Row I want calculate the total row of a datagrid EX : ------ ---------------------------- ID Name Marks ---------------------------- 1 aaa 200 2 bbb 250 3 ccc 200 ---------------------------- Total 650 THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
-
HI How can i calculate datagrid Row I want calculate the total row of a datagrid EX : ------ ---------------------------- ID Name Marks ---------------------------- 1 aaa 200 2 bbb 250 3 ccc 200 ---------------------------- Total 650 THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
-
HI I want to calculate the ROW items Total in Datagrid Itiems ------- 10 20 30 ------------- Total = 60 ---------------
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
-
HI I want to calculate the ROW items Total in Datagrid Itiems ------- 10 20 30 ------------- Total = 60 ---------------
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
Ohh I actually misunderstood your question. For this you can take a label control in the footer of the datagrid to display the total and to calculate the total you can use the Onitemdatabound event there you can take a variable and keep adding all the corresponding values of all the rows.
Best Regards, Apurva Kaushal
-
HI How can i calculate datagrid Row I want calculate the total row of a datagrid EX : ------ ---------------------------- ID Name Marks ---------------------------- 1 aaa 200 2 bbb 250 3 ccc 200 ---------------------------- Total 650 THX
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
-
int j=0; int RowCount=myDataSet.Tables["tablename"].Rows.Count; for(int i=0;i Where the mydataset is the datasource of data grid and "tablename" is the data member of the datagrid. :mad: Sathik
Hi Thx For reply I am using VB.NET Can U plz CHK Is it right -------------------------- Dim j As Integer = 0 Dim RowCount As Integer = dsCustomers.Tables("Tottime").Rows.Count Dim i As Integer Dim DgDiscovered While i j += Convert.ToInt32(DgDiscovered(i, 1).ToString()) ' End While rc.Text = j.ToString() -----------------------------------------
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf