ny ideas how Ive broke this?It worked before but now I get this error
[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]VB Code:
Private Sub dgNewCarriageBuildSheets_UpdateCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dgNewCarriageBuildSheets.UpdateCommand 'Declare variables Dim txtGearMotor As TextBox Dim txtRPM As TextBox Dim dropHand As DropDownList Dim txtPCB As TextBox Dim txtMeggaTest As TextBox Dim txtfTest As TextBox Dim dropULTest As DropDownList Dim txtsTest As TextBox Dim calWEProd As Calendar Dim dropModel As DropDownList Dim txtSerialNo As TextBox 'Get the key value [U] Main.objCarriageBuildSheet.PublicSerialNo = dgNewCarriageBuildSheets.DataKeys(e.Item.ItemIndex)[/U] 'Get other values from template columns txtGearMotor = CType(e.Item.FindControl("txtMotorNo"), TextBox)




It worked before but now I get this error
Reply With Quote