If we move our mouse on to the variables, which hold the cell values, we can see the old value instead of new updated value (Refer the debugging Screen Shot at the Top).
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.
To do this, I created an instance of the Row Updating event for the Grid View.
This event passes the necessary information to the method via the Grid View Update Event Args parameter. Find Control("Label20e"), Label) Sql DSupport Info.
Then within the new method one can access controls within the Grid View row being edited by referencing the Row Index attribute of the Grid View’s Rows collection. Find Control("ddl Service Level List"), Drop Down List) Dim lbl Support Date As Label = CType(GVSupport Info. So for example to reference a Drop Down List within the Grid View Row, use the syntax: Basically this is quite straightforward once one knows the syntax for referencing a control within a Grid View Row. Grid View Update Event Args) Dim lbl Service Level As Drop Down List = CType(GVSupport Info. To finish up then one has to set the Sql Data Source Update Parameters to the desired values. The syntax for doing so is: Protected Sub GVSupport Info_Row Updating(sender As Object, e As System. Good afternoon, I have a grid View that is populated with a dataset from an Oracle Database. When I click on the EDIT button, it will redisplay my grid View with textboxes so I may make some changes. Text Dim str Close Time As String = Direct Cast(gv Business Hours.