开发者

C# populated DropDownList: Values are not displayed on debugger

开发者 https://www.devze.com 2023-03-05 06:38 出处:网络
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?

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

精彩评论

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