Sorry for delays with support, 9Rays just returned from vacations.
Try before using
[VB.Net]
Dim node As NineRays.Windows.Forms.Data.NodeBase
node = selfRelatedGrid.Rows.GetNodeFromRow(0)
to recoginize number of items:
[VB.Net]
If (selfRelatedGrid.Rows.Items.Count > 0) Then
Dim node As NineRays.Windows.Forms.Data.NodeBase
node = selfRelatedGrid.Rows.GetNodeFromRow(0)
End If