Start Gridview rowupdating get cell value

Gridview rowupdating get cell value

Edit Index = -1 'Bind data to the Grid View control. Sql Command Dim sql As String Dim reader As System.

Find Control("cb1_TOIL"), Check Box) Dim Col1_Others = CType(Gridview1.

Find Control("tb1_Others"), Text Box) Dim Col1_Roster Key = CType(Gridview1.

Bind Data() End Sub Hi, I get this error msg "Index was out of range.

Edit Index = -1 'Bind data to the Grid View control.

event is raised when a row's Update button is clicked, but before the Grid View control updates the row.

This enables you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs.

When click UPDATE button, it will fire the Row Updating Event, But I found that when I get the value for update statement, it still get the value before editing, not updated value.

Find Control("cb1_SL"), Check Box) Dim Col1_VL = CType(Gridview1.

Find Control("cb1_PH"), Check Box) Dim Col1_APH = CType(Gridview1.

Find Control("cb1_APH"), Check Box) Dim Col1_TOIL = CType(Gridview1.

I was just testing if I will get the changed value out of the textbox when updating with no luck.