Start Gridview rowupdating boundfield value

Gridview rowupdating boundfield value

New Edit Index 'Bind data to the Grid View control. Bind Data() End Sub Private Sub Create Data Table() Dim cmd As New System.

Add(New Data Column("Col1_Shift Type", Get Type(Int32))) dt. Add(New Data Column("Col1_Submitted By", Get Type(Int32))) Dim dr As Data Row While reader.

Add(New Data Column("Col1_APH", Get Type(String))) dt.

Add(New Data Column("Col1_TOIL", Get Type(String))) dt.

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.

Follow this link for more details --While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference.

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_VL", Get Type(String))) dt.

I need to do the updating operation on what row is clicked.