Solved

What does this combobox breakdown mean exactly?

Posted on 2014-09-30
8
137 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
Comment Utility
Would you mind posting a picture or giving us a little more detail to help us understand your question?
0
 

Author Comment

by:BlakeMcKenna
Comment Utility
Sorry...my bad!
Screenshot.jpg
0
 
LVL 74

Accepted Solution

by:
käµfm³d   👽 earned 333 total points
Comment Utility
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
Comment Utility
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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 74

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 333 total points
Comment Utility
@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
Comment Utility
Thanks guys!
0
 
LVL 15

Expert Comment

by:David L. Hansen
Comment Utility
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 74

Expert Comment

by:käµfm³d 👽
Comment Utility
@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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 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

17 Experts available now in Live!

Get 1:1 Help Now