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"
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"