alreadyused
Regular
- Joined
- Jan 13, 2006
- Messages
- 69
i have data listed in a tree, but got to thinking, it would be better in a combobox. What got me thinking about this was a post here:
http://www.xtremedotnettalk.com/showthread.php?t=95541
and:
http://www.xtremedotnettalk.com/showpost.php?p=414245&postcount=10
from: http://www.xtremedotnettalk.com/showthread.php?t=84983
And I looked around quite a bit, there's a ton of posts on here similar to this, but guess I'm messing up some mundane detail. "Mundane detail?!?"
Anyway, I'll save you the life story. I've attached a txt file showing what I'm trying to do. The interesting thing is that no matter how I do it, .SelectedValue = Nothing, .SelectedText = "", but .SelectedItem = the object I cast to it.
And then I can do .SelectedItem.Serial, .SelectedItem.Name, .SelectedItem.ToString... all of which are properties of the object I cast.
So having access to those properties takes care of what I need... but it probably is not correct, and I'm just wondering what I'm doing wrong so that the .SelectedText and .SelectedValue aren't coming up with anything?
http://www.xtremedotnettalk.com/showthread.php?t=95541
and:
http://www.xtremedotnettalk.com/showpost.php?p=414245&postcount=10
from: http://www.xtremedotnettalk.com/showthread.php?t=84983
And I looked around quite a bit, there's a ton of posts on here similar to this, but guess I'm messing up some mundane detail. "Mundane detail?!?"
Anyway, I'll save you the life story. I've attached a txt file showing what I'm trying to do. The interesting thing is that no matter how I do it, .SelectedValue = Nothing, .SelectedText = "", but .SelectedItem = the object I cast to it.
And then I can do .SelectedItem.Serial, .SelectedItem.Name, .SelectedItem.ToString... all of which are properties of the object I cast.
So having access to those properties takes care of what I need... but it probably is not correct, and I'm just wondering what I'm doing wrong so that the .SelectedText and .SelectedValue aren't coming up with anything?