I'm using the first data column's EditItem Template to allow the user to edit 6 fields. This has allowed us to get the datagrid to expand vertically and increase the font size too. I'm using an HTML table control to hold the text boxes and dropdownlists so it's structured, but now...on the UpdateCommand, I can't get the cast correct and/or find the control to get the associated data for the Update statement. The error and line are:
"Specified Cast is not valid"
txtType = CType(e.Item.Cells(4).Controls(2), TextBox).Text
Can/should I even use an HTML control to hold the items in the EditItem template?
Any suggestions are welcome!
"Specified Cast is not valid"
txtType = CType(e.Item.Cells(4).Controls(2), TextBox).Text
Can/should I even use an HTML control to hold the items in the EditItem template?
Any suggestions are welcome!