Solved

What does this combobox breakdown mean exactly?

Posted on 2014-09-30
8
141 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now