Gridview rowediting and rowupdating

Posted by / 11-Oct-2019 06:54

Gridview rowediting and rowupdating

After it has been clicked the postback places that row in edit mode. At this point in time the above Edit Item Template is displayed with two Image Buttons within it. My problem lies in that the click on the Update Image Button posts back, but neither the Row Command nor Row Updating events get triggered.

I have set the requisite attributes in the Grid View tag.

Take a look at the page load if you are binding on post back then the values get updated before you are able to access them.

Hi cms9651, Form your description and code, it is hard for me to understand your problem.

Connection = conn2 sql = "SET DATEFORMAT dmy; SELECT * FROM XXXX " cmd. Execute Reader() Dim Temp Staff Key As Integer Dim Temp Post Key As Integer Dim Temp Shift Date As Date Time Dim Temp Start Time As Date Time Dim Temp End Time As Date Time Dim Temp SL As String Dim Temp Roster Key As Integer Dim Temp VL As String Dim Temp ML As String Dim Temp PH As String Dim Temp APH As String Dim Temp TOIL As String Dim Temp Others As String Dim Temp Shift Type As Integer Dim Temp Submitted By As Integer Dim dt As New Data Table() dt. Add(New Data Column("Staff Name", Get Type(String))) dt. Add(New Data Column("Post Code", Get Type(String))) dt. Add(New Data Column("Staff Key", Get Type(Int32))) dt. Add(New Data Column("Post Key", Get Type(Int32))) 'Monday dt. Add(New Data Column("Col1_Roster Key", Get Type(Int32))) dt. Add(New Data Column("Col1_Shift Date", Get Type(Date Time))) dt. Add(New Data Column("Col1_Start Time", Get Type(Date Time))) dt. Add(New Data Column("Col1_End Time", Get Type(Date Time))) dt. Add(New Data Column("Col1_SL", Get Type(String))) dt.

Add(New Data Column("Col1_PH", Get Type(String))) dt. Edit Index = -1 'Bind data to the Grid View control. Sql Command Dim sql As String Dim reader As System. Sql Command Dim sql3 As String Dim reader3 As System. Raise Post Back Event(IPost Back Event Handler source Control, String event Argument) 13 System. Raise Post Back Event(Name Value Collection post Data) 9643314 System.

gridview rowediting and rowupdating-75gridview rowediting and rowupdating-89gridview rowediting and rowupdating-75

Within the Item Template I have an Image Buttong with a Command Name of "Edit".

One thought on “gridview rowediting and rowupdating”