Skip to content

Commit 3e553eb

Browse files
authored
Merge pull request #684 from telerik/DinkoK-patch-16
Update end-edit-on-cell-radgridview.md
2 parents 859504c + 9e03299 commit 3e553eb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

+4-1
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)