I am using FlexGrid control of ComponentOne on my form in vb.net having 3 cols.

I want to change the value of 3 col when 2nd col's value changes. I have written the following code:

VB Code:
  1. Private Sub grdSHP_CellChanged(ByVal sender As Object, ByVal e As C1.Win.C1FlexGrid.RowColEventArgs) Handles grdSHP.CellChanged
  2.         With grdSHP
  3.             If e.Row = 0 Or e.Col = 0 Then
  4.                 Exit Sub
  5.             End If
  6.             If Val(.get_TextMatrix(15, 2)) = 0 Then
  7.                 .set_TextMatrix(e.Row, 2, "0") '***Here I get the error***
  8.             Else
  9.                 .set_TextMatrix(e.Row, 2, Val(.get_TextMatrix(15, 2)) * Val(.get_TextMatrix(e.Row, 1)) / 100)
  10.             End If
  11.         End With
  12.     End Sub

This is not working.

Pls guide me if there's any other way.

Regards,

Prakash