开发者

C# populated DropDownList: Values are not displayed on debugger

I am new to C#. I am trying to see the inserted values of the DDL control though I can only see info about the control (like location, colour, etc.)! How can I see the actual data it carries?

Ofcour开发者_如何学JAVAse I am looking at an established project and the data are there, the question is HOW I can show them to the debugger, in the Watch pane for example.

Thanks,

Sun


Try inspecting the Items property and iterate through the items using indexes.

Example: ddlSomthing.Items[0]

You can also use the Watch window to inspect the properties in details.

Hope that helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜