Dim total as Double For i = 0 To DataGrid1.Items.Count - 1 total = total + Convert.ToDouble(DataGrid1.Items.Item(i).Cells(1).Text) NextBut in C#, it seems that I can't find the Item(i).Cells(1).Text property.
for(int i=0; i<dg.Items.Count -1; i++) { // Response.Write (dg.Items.Item(i).Cells(1).Text); // the above code has an error... }Can anyone help?