Home Forums WinForms controls Xceed Grid for WinForms Object reference not set to to an instance of an object.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #13561 |

    Following is my code:

    Dim row1 As Xceed.Grid.DataRow = grdGIV.DataRows.AddNew()
    row1.BeginEdit()

    Try
    row1.Cells(“issue1”).Value = “test”
    Catch ex As Exception
    MsgBox(ex.Message)
    End Try

    row1.EndEdit()

    I wonder how i coult not catch this above error message in the try catch block!! This message appears out of try catch block.

    Anyone to find out?

    Imported from legacy forums. Posted by PETE (had 556 views)

    User (Old forums)
    Member
    Post count: 23064

    Put the entire block of code inside the Try block. <code>Try
    Dim row1 As Xceed.Grid.DataRow = grdGIV.DataRows.AddNew()
    row1.BeginEdit()
    row1.Cells(“issue1”).Value = “test”
    row1.EndEdit()
    Catch ex As Exception
    MsgBox(ex.Message)
    End Try</code>

    Imported from legacy forums. Posted by Tommy (had 2565 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.