thats w im doing now but it has 1 problem, you can't set the cbo to a value.
You always need the text to set a cbo. It should be possible to have a value
2.
In asp.net there is a listitem class system.web.UI.WebControls.listitem w
this class its possible, so it should be possible to have this in your own
class 2.
I know i can work around it but i am revising my custom classes we use here
and want to include a value. Probably some more things in the future but im
still experimenting w these things.
Its not an urgent matter, yust bugging me
Tnx for having a look at it.
eric
"Armin Zingler" <(E-Mail Removed)> wrote in message
news:40729334$0$12507$(E-Mail Removed)...
> "EricJ" <(E-Mail Removed)> schrieb
> >
> > If you want to have your own class in a combo you override the
> > tostring function to display the text.(got that one here 2 ;p)
> > But i don't seem to find how to get the value, w function do i have
> > to override to work w the values ?
> > int = cbo.selectedValue (this sort of thing)
>
> My intellisense offers other Selected* items.
Among them, there is
> SelectedItem. Memberinfo for SelectedValue also shows that it returns the
> value of the member set by the ValueMember property - uses reflection so
> instead I'd use
> directcast(cbo.selecteditem, yourclass).property
>
>
> --
> Armin
>
> How to quote and why:
> http://www.plig.net/nnq/nquote.html
> http://www.netmeister.org/news/learn2quote.html
>