Gridview rowupdating error

Posted by / 18-Dec-2019 01:29

Gridview rowupdating error

You had it almost right originally, but you were trying to retrieve something out of the first cell whcih is where the Update link is located. No, that's ok, but if you have the Auto Generate Columns property set to the default of true, then you need to extract the data directly from the Text Boxes embedded within the cells. Find Control("cb1_APH"), Check Box) Dim Col1_TOIL = CType(Gridview1.

Im trying to grab the value of gridview text box (during edit mode - rowupdating event) however i get the error: Unable to cast object of type 'System. Find Control("cb2_APH"), Check Box) Dim Col2_TOIL = CType(Gridview1. Find Control("cb2_TOIL"), Check Box) Dim Col2_Others = CType(Gridview1. Find Control("tb2_Others"), Text Box) Dim Col2_Roster Key = CType(Gridview1. Find Control("lb2_rosterkey"), Label) Dim Col2_Start Time = CType(Gridview1.

gridview rowupdating error-30gridview rowupdating error-16gridview rowupdating error-58

Hour = 0 End If End If sql = "start_time='" & Col1_Start Time.