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