'How we can calculate the value of Datagridview

How we can calculate the value of Datagridview cell like if cell value is 6+2+9 and result is shown in second column Column A Column B 6+6+2 ??? i tried this code but second cell not show result of first cell

    Dim DocNo As String
    If e.RowIndex >= 0 Then
       Try
          DocNo = 
 Math.Abs(CDbl(DataGridView3.Rows(e.RowIndex).Cells(0).Value.ToString))
          DataGridView3.Rows(e.RowIndex).Cells(1).Value = DocNo
      Catch
         DataGridView3.Rows(e.RowIndex).Cells(0).Value = "?"
      End Try
   End If


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source