Solved

What does this combobox breakdown mean exactly?

Posted on 2014-09-30
8
150 Views
Last Modified: 2014-09-30
Why the 2 red "X"'s?
0
Comment
Question by:BlakeMcKenna
  • 3
  • 3
  • 2
8 Comments
 
LVL 15

Expert Comment

by:David L. Hansen
ID: 40352980
Would you mind posting a picture or giving us a little more detail to help us understand your question?
0
 

Author Comment

by:BlakeMcKenna
ID: 40353035
Sorry...my bad!
Screenshot.jpg
0
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 333 total points
ID: 40353043
Item is considered to be a default property. If you've ever worked in C#, it's the equivalent of being able to index the object (like an array)--i.e. grab some data by index number (or name). Default properties take a parameter that specifies the index you would like to pull data by. The error you see is simply Visual Studio telling you that it cannot display a value for the property because that property takes a parameter that Visual Studio cannot supply. You could alternatively open up the Watch window and enter something like:

Item(0)

...to see the value at index 0. Default properties can also be indexed by string. It depends on the object as to which method (or methods) are implemented.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 15

Assisted Solution

by:David L. Hansen
David L. Hansen earned 167 total points
ID: 40353048
Ahh yes, the red X's symbolize items which are defined but are either out-of-scope or have not yet been instantiated.  In your case the X's are referring to the items already selected by the user.  If the user has not selected any items in the combobox then that property is essentially empty.
0
 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 333 total points
ID: 40353059
@sl8rz

You can see just above that the SelectedIndex is equal to 8, so the user (or the program) must have selected something.

I don't think your assessment is accurate. If we were talking about the Watch window, then I would agree. Because this is the popup that you get when you mouse over a variable, everything visible should be in scope.
0
 

Author Closing Comment

by:BlakeMcKenna
ID: 40353106
Thanks guys!
0
 
LVL 15

Expert Comment

by:David L. Hansen
ID: 40353115
Kaufmed,

True, the combobox is certainly in-scope. If memory serves: when a group of custom-defined generics are placed in the combobox, and one is selected, data is shown in the selectedItem property.  In this situation there just isn't any indexable data inside the selectedItem...correct?
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 40353152
@sl8rz

In this situation there just isn't any indexable data inside the selectedItem...correct?
It's as I mentioned above:  The DataRowView, which in this scenario is what the SelectedItem is, has two default properties:

DataRowView.Item Property (Int32)
DataRowView.Item Property (String)

i.e.  One that takes an integer parameter and one that takes a string parameter. These two properties allow you to inspect the data in the various columns exposed by the DataRowView, either by column index or column name. Visual Studio does not know what all has been defined as valid values for the indexes or column names, so it cannot display any of the data from DataRowView via this property. You would have to use the Watch window that I mentioned earlier.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question