Skip to content

Commit 9e03299

Browse files
authored
Update end-edit-on-cell-radgridview.md
1 parent d724d0f commit 9e03299

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

knowledge-base/end-edit-on-cell-radgridview.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ To apply this custom behavior, register it with your RadGridView. This custom be
4545

4646
````C#
4747
// Example of how to register the custom behavior
48-
gridView.GridBehavior = new CustomGridDataRowBehavior();
48+
BaseGridBehavior gridBehavior = this.radGridView1.GridBehavior as BaseGridBehavior;
49+
gridBehavior.UnregisterBehavior(typeof(GridViewDataRowInfo));
50+
gridBehavior.RegisterBehavior(typeof(GridViewDataRowInfo), new CustomGridDataRowBehavior());
51+
4952
````
5053

5154
## See Also

0 commit comments

Comments
 (0)