This is a migrated thread and some comments may be shown as answers.

On<EventName> methods are internal

0 Answers 25 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Patrick asked on 05 Apr 2012, 01:02 PM
Hello,
in the RadGridView control, there are many On<EventName> methods that raises the event <EventName>. Unfortunately, these method are declared internal and can't be used by users.
Good practice in .NET indicates that this methods should be protected and virtual, but not internal.
It's much more simpler, when inheriting from a class, to use overrided methods instead of defining an event handler. In addition, with an overrided method, we can control if the code must be executed before the event is raised after that.
The same remarks are also valid for other controls.
Patrick
Tags
GridView
Asked by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or