Debug your code and when you go past that line when debugging, hover over the codeStatus text and click on the magnifying glass icon. It should say DataTable Visualizer.
When you debug past the codeStatusRow line, hover over the text then the plus sign, and you should see the word Table select the magnifying glass next to that.
So what do you want to show in the textbox, the actual ID value or the status value?
What ever was displayed in the DataSet visualizer will be coming from your query GetCodeStatus(CodeID), so if in your query you haven't told it to show the ID field but only filter for a parameter then it won't find it.
In this case you would need to change your query to include the ID:
Code:
SELECT CodeID, CodeStatus FROM lward.tblCodes WHERE CodeID = (@CodeID)
However, if you want the status value in your textbox when you change the dropdown value e.g. 'In Progress' then change this:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.