How to best get values from a multidimensional ArrayList?

  • Thread starter Thread starter NET CF Questions
  • Start date Start date
N

NET CF Questions

I'm having a problem only being able to pull the value from one of the
columns in a multidimensional ArrayList.

Let me explain what I'm doing and what I'm trying to do.

--------Base------
We have a ComboBox with
Table(T_CUSTOMER)'s
CUSTOMER_CODE value as ValueMember
CUSTOMER_NAME value as DisplayMember

---------What we're trying to do--------------
When a user on a different form gets a CUSTOMER_CODE, the
corresponding pull-down (DisplayMember) row should come up as selected
on the above ComboBox.

They way we thought to do this was by specifying the ComboBox's
SelectedIndex value.
There we would use the ValueMember value to find where it came up on
the List Index.

Question 1:
In the case when the Arraylist is specified in the Datasource,
Is there a way to directly get the List Index from the ValueMember
value into the ComboBox?

Question 2:
When adding two dimensional values in an ArrayList, we'd like to know
the ways we can (methods we can use) to get the different values.

______________________________
..net CF 2.0 SP2, VB, VS 2005
 
I think my question may be unclear, I apologize.
Let me try again.

What I have:
a ComboBox with
Table(T_CUSTOMER)'s
CUSTOMER_CODE value as ValueMember
CUSTOMER_NAME value as DisplayMember
Combobox's DataSource in an ArrayList


What we want to do:
When a user on a different form gets a CUSTOMER_CODE, the
corresponding pull-down (DisplayMember) row should come up as selected
They way we thought to do this was by specifying the ComboBox's
SelectedIndex value.
There we would use the ValueMember value to find where it came up on
the List Index.

Should this work?
How would / do you do it?
 
Back
Top