P
Paul Brownjohn
I have only just started writing C# after years of programming in C and VB
3, 4, 5 & 6.
I'm struggling a bit to find a construct that is equivalent to using
itemdata in VB to store a numeric (usually DB ID) field alongside each
displayed value.
The help files are particularly obtuse on this subject. They say that
ItemData does not exist as such...but not, "so you should now do the same
thing like this:......"; which is what I reckon most people want to see!
Am I right in saying that if you want to do this you create some kind of
object (a struct or class) that contains both the string display value and
the numeric (int) value and do a .ADD on that which enables you to access
the int via the selected row in the combo.
Why the hell MS couldn't provide a LOT more examples instead of the turgid
text in the help files I do not understand.
Can any one explain this in a way that a normal human being can grasp
quickly and easily..it can't be that complex!!
Better yet has anyone out there got some sample code of this concept in
action
Cheers
Paul BJ
3, 4, 5 & 6.
I'm struggling a bit to find a construct that is equivalent to using
itemdata in VB to store a numeric (usually DB ID) field alongside each
displayed value.
The help files are particularly obtuse on this subject. They say that
ItemData does not exist as such...but not, "so you should now do the same
thing like this:......"; which is what I reckon most people want to see!
Am I right in saying that if you want to do this you create some kind of
object (a struct or class) that contains both the string display value and
the numeric (int) value and do a .ADD on that which enables you to access
the int via the selected row in the combo.
Why the hell MS couldn't provide a LOT more examples instead of the turgid
text in the help files I do not understand.
Can any one explain this in a way that a normal human being can grasp
quickly and easily..it can't be that complex!!
Better yet has anyone out there got some sample code of this concept in
action
Cheers
Paul BJ