Skip to content

Commit 6cc0ba3

Browse files
author
Marin Bratanov
committed
docs(grid): add tip on checking table names before accessing data
1 parent 14ac459 commit 6cc0ba3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

controls/grid/rows/accessing-cells-and-rows.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ Protected Sub RadGrid1_ItemCommand(sender As Object, e As GridCommandEventArgs)
171171
End Sub
172172
````
173173

174+
>tip If you are using detail tables, you may want to check the `item.OwnerTableView.Name` you are accessing to prevent null reference errors.
175+
174176
## Accessing Controls in Template Column
175177

176178
While accessing cells with Template columns remains the same, you could use a little different approach to get the controls in the cell. For example, to access a TextBox declared in the ItemTemplate of the column:

0 commit comments

Comments
 (0)