Gridview rowupdating event not
Row Editing, Address Of dg_Row Editing Add Handler dg. Click, Address Of btn Submit Button_Click Dim dg As New Grid View Dim listb As New List Box Add Handler dg. The code is not finished as I would like to implement more exposed properties to ease the task of editing the look and feel of the contorls. Thanks all for the support Gehres Weed Public Class Poll Admin Inherits Composite Control Implements INaming Container Public Event Question Submitted As System. The polldisplay class is of interest as it is an example of how to implement a Data List in a custom composite control. Hi All, I am building a custom composite control with VS2008 which contains a Grid View. 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.
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. Find Control("dg"), Grid View) Dim str Question As String = datagrid. Find Control("dg"), Grid View) End Select End Sub Public Sub dg_Row Updating(By Val sender As Object, By Val e As Grid View Update Event Args) Dim datagrid As Grid View datagrid = CType(Me. Row Canceling Edit, Address Of dg_Row Canceling Edit Controls. Row Command, Address Of dg_Row Command Add Handler dg. Row Canceling Edit, Address Of dg_Row Canceling Edit Controls.
Referential integrity constraints would make the code for an example that actually deletes rows from the Customer table more complex.