Findcontrol in gridview rowupdating event
The problem is: when I retrieve data using Grid View. Grid View Command Event Args) Handles gv Autorizzazioni. Command Name = "Crea Autorizz") Then Dim str Per Insert As String = "" Dim index As Integer = Convert. Command Argument) Dim row As Grid View Row = gv Autorizzazioni. Protected Sub gv Autorizzazioni_Row Command(By Val sender As Object, By Val e As System.
So I have my Gridview with Data Source set to a Data Table on page Load event : In the Click event of the button I want to retrieve current values of the controls, as displayed on Web page after user's actions, and pass them to my sp as a comma-separated string. Is Null Or Empty(str Add) = False Then str Per Insert = str Per Insert & str Add & "," '..so on to add values to string What to do to retrieve edited values? Find Control, I only get unedited values, those initially displayed from database, not the actual values displayed on screen. Rows(index) Dim str Add As String = "" str Add = (CType(row.
New Edit Index Show GV() End Sub Protected Sub gv Info_Row Canceling Edit(By Val sender As Object, By Val e As System.
Edit Index = -1 Show GV() End Sub Protected Sub gv Info_Row Updating(By Val sender As Object, By Val e As System.
Css Class = "rowstyle"; Grid View Row row = (Grid View Row)Task Grid View.
Protected Sub Page_Load(By Val sender As Object, By Val e As System. Load If Not Is Post Back Then Show GV() End If End Sub Protected Sub gv Info_Row Editing(By Val sender As Object, By Val e As System.
A Grid View Edit Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the edit operation should be canceled.
For boundfields, i am able to find control and textbox value while updating the row.
A Grid View Updated Event Args object is passed to the event-handling method, which enables you to determine the number of rows affected and any exceptions that might have occurred.
before that i want just using Find control and casting and then retrieving all lot code. If values are same they could notify user to change the value(give new cell value).