|
-
Jan 18th, 2007, 12:50 AM
#1
Thread Starter
Fanatic Member
how to fill comboobx using dataset
hi can any one show some example how to fill combobox using dataset
i used this:
ds_code = general.ExecuteDataset(con, "HRUser_sprollcodeselect")
Dim i As Integer = ds_code.Tables(0).Rows.Count
HRUser_cmb_rollcode.DataSource = ds_code.Tables(0)
HRUser_cmb_rollcode.DisplayMember = "roll_code"
but i couldn't get i am getting system.data.datarowview,can any one help me please
-
Jan 18th, 2007, 01:42 AM
#2
Re: how to fill comboobx using dataset
That means that there is no column named "roll_code" in the bound table. Make sure that you are specifying a valid column name, taking note that DisplayMember is case-sensitive.
-
Jan 18th, 2007, 02:43 AM
#3
Thread Starter
Fanatic Member
Re: how to fill comboobx using dataset
hi jmcilhinney, thanks a lot, i did a small mistake,i found that using ur help thank you very much
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|