Gridview rowupdating code

Add(New Data Column("Col1_TOIL", Get Type(String))) dt. Add(New Data Column("Col1_Others", Get Type(String))) dt. Read() '---For each row g_Temp Staff Key = "0" Temp Staff Key = reader("staff_key") 'will not null g_selectstaffkey = Temp Staff Key g_selectpostkey = reader("post_key") g_selectstaffname = RTrim(reader("name_eng")) g_selectpostcode = RTrim(reader("post_code")) Using conn3 As New System. I want to update the modified rows to the Database. Thanks Ashok Hi Ashok, the Grid View control has its own mechanism for updating and deleting rows.Then, when all the inserting is complete, the user clicks a submit button to insert all the rows from the gridview into a database table. Referencing gridview fields in Row Updating event I have the following code in place. Sql Command Dim sql3 As String Dim reader3 As System.

I have my Subs that do this fine when not inside the Grid View, but what is the correct way to do it whilst they are in the Grid View? So for instance when I select Heavy Sort as a next process step only heavy sort shows up. Hello all, I just posted a message yesterday, there is no one replied to me. Yes it is IF NOT Is Post Back, HAHAHAHA I am a more familier with VB ..missed to read that '!Protected Sub Grid View1_Row Updating(sender As Object, e As Grid View Update Event Args) Handles Grid View1. Row Index) Dim connection String As String = Configuration Manager. Dim dt = CType(Session("dt"), Data Table) 'Update the values. Edit Index = -1 'Bind data to the Grid View control. Sql Command Dim sql As String Dim reader As System.

Leave a Reply