Gridview rowupdating vb

Row Updating My Grid is populated with that information and has an Edit link on the Grid. Fill(ds View Data, tbl Name) Protected Sub Grid View1_Row Updating(By Val sender As Object, By Val e As System.

I simply want to grab what the person enters after hitting the update link (while in Edit mode).

Binding a Grid View control can sometimes get tricky when using the Visual Studio editor, especially when working with Drop Down List controls within the grid.

Today I was working on getting a row of the Grid View control to save the contents of a Drop Down List, and needed to add some custom code to set values passed to the Sql Data Source control on the update event.

I found that simple data binding of my Drop Down List in my Grid View to my Sql Data Source was not going to be enough.

I would need to set values passed to the Sql Data Source control on the update event, and as part of this I would need to reference the controls contained in the row being updated.

My Grid View1 is being populated via code through a manually created Data Source: Dim con DB As Sql Connection 'Set the path to the database Dim str Connect As String = "Data Source=SERVER; Initial Catalog=THEDBNAME; User Id=USER; Password=USERPASSWORD;" con DB = New Sql Connection(str Connect) con DB.

I simply want to grab what the person enters after hitting the update link (while in Edit mode). Thank you in advance." id="ctl00_m_m_i_ctl00_gr_ctl07_bestanswerbody" class="textarea-bestanswerhidden" name="bestanswerbody" answerbody Id="2038737" / My apologies if I am not being clear. Create Connection oda SNumber = New Sql Data Adapter("SELECT top 10 * FROM CCP_TRAINING.

Text = "No Country Found." End If If Not Is DBNull(Session("Start Date")) Then lbl Date Created.

Tell me where I have gone wrong and Please suggest some ways to fix this problem. Here, when click Edit button on "C" row, and modified values from f1C to f1CXX; and in the rowupdating method, it is getting f1CXX only... I am getting some problems in the code you posted aslo.

Anyway I will check it and sort it out tell you Here is my defaukt1code. (may be some omissions happehed while cut/paste) //default1cs using System; using System.

Visual Studio allows developers to quickly put together a Web Forms page simply using drag and drop options from the Visual Studio editor.

Binding form controls is mostly a simple matter of attaching a Data Source and setting your controls to reference the correct field in the Data Source.