I have a gridview named "dgvSchedules"
This grid has 2 columns "Trip_ID" and "Dispatch".
When the column named Dispatch is a text box column, this following code worked great.
I changed this column to a combobox column and i am getting the error mentioned below.
Why is it failing to recognize the column name when i changed it to a combobox?
What should i do to make it work?
Error: Column named Dispatch cannot be found. Parameter name: columnName
Dim mytripID As String = Nothing
Dim dispatchCd As String = Nothing
mytripID = dgvSchedules.CurrentRow.Cells("Trip_ID").Value.ToString
dispatchCd = dgvSchedules.CurrentRow.Cells("Dispatch").Value.ToString
View Complete Post