' Web Page: Public Class DailyWorkEntry Inherits HurricaneDataPage Implements IHurricaneDataPage '... Protected WithEvents dgDailyWorkDetail As DataControls.AutomatedDataGrid End Class ' Custom Control: Public Class AutomatedDataGridEventArgs Inherits System.EventArgs Public NewRow As DataRow Sub New() End Sub Sub New(ByVal NewRow As DataRow) Me.NewRow = NewRow End Sub End Class Public Class AutomatedDataGrid Inherits System.Web.UI.WebControls.DataGrid Delegate Sub GridEventHandler(ByVal sender As Object, ByVal e As AutomatedDataGridEventArgs) Public Event NewLineCreated As GridEventHandler End Class