Help with combo box return more than 1 item

A

Agnes

From the previous old post, I got some source code about one combo box which
return more than 1 item :-
I had set the arraylist to the datasource, However, How can I get back the
deptname ???
Thanks a lot
--------------------------------------------------------------
Dim dr As DataRow
For Each dr In dsDept.Tables(0).Rows
strDeptId = Trim(dr.Item("Deptid"))
strDeptName = Trim(dr.Item("Deptname"))
arlDept.Add(New dtsclass.objDeptList(strDeptId, strDeptName))
Next

Me.DataSource = arlDept
Me.DisplayMember = "pDeptId"
 
C

Cor Ligthert

Agnes,

Any reason you take the difficult way and not use directly a dataview?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top