Dim RunningTotals As Double = 4
For Each Rw As DataGridViewRow In TblBreakEvenDataGridView.Rows
RunningTotals += CDbl(IIf(Rw(0) Is DBNull.Value, 0, Rw(0))) 'Gets the values for each cell with the column index 0 and sum each one
Next
TextboxTotals.Text = RunningTotals.ToString
And got this error: Error 3 Class 'System.Windows.Forms.Data
Open in new window