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

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)