I need to define 3 events in a Custom Control as OnChange
, OnSave
, and OnDelete
.
I have a GridView
and work with its rows.
Can you help me and show me this code?
I need to define 3 events in a Custom Control as OnChange
, OnSave
, and OnDelete
.
I have a GridView
and work with its rows.
Can you help me and show me this code?
Good article which can help you to achieve your task:
Custom Controls in Visual C# .NET
Step 1: Create the event handler in your control as below.
Step 2 : Utilize the event in the page where you register your control. The following code is going to be part of your page where your control is registered. If you register it, it will be triggered by the submit button of the control.