TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
shubhangi khandale
NA
73
147.6k
When binding combo no any value display
Dec 12 2011 6:55 AM
Hi
When i binding combobox no any values display, my code is :
SqlCommand cmd1 = new SqlCommand();
cmd1.Connection = con;
cmd1.CommandType = CommandType.Text;
cmd1.CommandText = "select name_of_party from client_master";
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
con.Open();
da.Fill(ds);
combo_nameofparty.DataSource = ds.Tables["client_master"];
combo_nameofparty.DisplayMember = "name_of_party";
combo_nameofparty.ValueMember = "name_of_party";
con.Close();
Reply
Answers (
2
)
Setup program
Datagridview