The polldisplay class is of interest as it is an example of how to implement a Data List in a custom composite control. Also I did not include the CSS files or the SQL Server scripts. I need to do the updating operation on what row is clicked." Select Command="SELECT a.tenantcode, a.name, a.fixedrate, a.percentrate, a.percentage, b.locationd, c.status FROM TENANTNEW AS a INNER JOIN LOCATION AS b ON a. Data Bind() End If End Sub 'Protected Overrides Sub Create Child Controls() ' My Base. Clear() ' Dim pnl As New Panel() ' Dim dg As New Grid View ' Add Handler dg. Row Updating, Address Of dg_Row Updating Add Handler dg. Row Editing, Address Of dg_Row Editing Add Handler dg. Find Control("dg"), Grid View) Case Is = "Edit" Dim datagrid As Grid View datagrid = CType(Me. Row Updating, Address Of dg_Row Updating Add Handler dg. Data Bind() End Sub Public Sub dg_Row Command(By Val sender As Object, By Val e As Grid View Command Event Args) Dim str Source As String = e. Find Control("dg"), Grid View) Case Is = "Update" Dim datagrid As Grid View datagrid = CType(Me. Row Editing, Address Of dg_Row Editing Add Handler dg.
You can also indicate whether the exception was handled in the event-handling method by setting the Exception Handled property of the Grid View Updated Event Args object. Row Canceling Edit, Address Of dg_Row Canceling Edit ' Controls. Row Command, Address Of dg_Row Command ' Add Handler dg. Selected Index Changed, Address Of dg_Selected Index Changed Add Handler dg. Everything works as advertised but for the life of me I can't get the Row Updating Event to fire. Row Updating, Address Of dg_Row Updating never fires at all. Thanks Gehres Here is my Code: Public Class Poll Admin Inherits Composite Control Implements INaming Container Dim sql As New SQLCrud Public Event Question Submitted As System. When you click the Update or Cancel buttons the Row Command event fires but the e. Event Handler Public Event datagrid Bind As System.