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

On<EventName> methods are internal

0 Answers 13 Views
GridView
This is a migrated thread and some comments may be shown as answers.
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

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or