slimroberts1
Programmer
Can any one tell me how to do the following. At the moment I create an new arraylist.
ArrayList Code = new ArrayList()
I then pass this to a class function which will load the array with a field from a table.
I then on the return from loading assign the array to a combo box
cbCatCode.DataSource = Code;
Now this all works But ! I would like to load the array with say 2 fields not just one.
Then assign just one on the array items to the combobox
so array has :
code name
code name
code name
and so on then I just want the code part to display in the combo.
Can this be dun.
Many thanks
Slim
ArrayList Code = new ArrayList()
I then pass this to a class function which will load the array with a field from a table.
I then on the return from loading assign the array to a combo box
cbCatCode.DataSource = Code;
Now this all works But ! I would like to load the array with say 2 fields not just one.
Then assign just one on the array items to the combobox
so array has :
code name
code name
code name
and so on then I just want the code part to display in the combo.
Can this be dun.
Many thanks
Slim