468,769 Members | 2,275 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,769 developers. It's quick & easy.

Windows Form Combobox Bind Problem with valuemember

Hello all,

i m stuck in how to bind combobox with valuemember

i have four fields in database like..in table agent_master
id =a00001
firstname = nitya
middlename = v
lastname = kalaria

now i want all record from agent_master

in combobox want to bind record like i.e. nitya v kalaria and it's valummber is it's id a00001

can anybody help me how to do that?

thanking u in advanced...

Jun 9 '08 #1
3 1609
692 Expert 512MB

Please refer this Article
Jun 9 '08 #2
Hey Shweta,

thanks for ur kind help..

i solved my problem.. below is the partial pasted code

For i = 0 To arrfullname.Count - 1

once again thanks..
Jun 9 '08 #3
Do it Like this.

DataAccess da = new DataAccess();
DataTable dt = da.SelectRecord("SELECT Day.* FROM [Day];");
comboBox1.DataSource = dt;
comboBox1.DisplayMember = "Day_ID";
comboBox1.ValueMember = "Day_Name";
Nov 5 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Tamir Khason | last post: by
5 posts views Thread by DS | last post: by
1 post views Thread by Parveen | last post: by
4 posts views Thread by c_shah | last post: by
3 posts views Thread by Alan T | last post: by
1 post views Thread by johnb41 | last post: by
4 posts views Thread by Jerad Rose | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.