Solved

What does this combobox breakdown mean exactly?

Posted on 2014-09-30
8
157 Views
Last Modified: 2014-09-30
Why the 2 red "X"'s?
0
Comment
Question by:BlakeMcKenna
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses

627 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