Hi All,
I am trying to implement some common services for DataGrid control by
implementing IExtendee and providing users with some properties they can
set. I need to process some code in the DataGrid's Form Load event. So, I
wrote
If (Not (me.DesignMode)) Then
AddHandler DataGrid.FindForm().Load, AddressOf LoadHandler
End If
This is generating an exception at run time. I am not able to hook to the
Load event.
Any ideas or suggestions Please? I am trying to create something like a
Pluggin for all DataGrid controls in our project. Is there an easier way to
do this? I know I could have inherited the DataGrid control and wrote code
there, but didn't want to do sos This sounded more fun.
Thanks
Raju...