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
honar abubakr
NA
73
110.2k
error in binding combobox?
Jul 31 2013 6:48 AM
when i want to bind a combobo with a table column give me error like error in the image in this link http://s23.postimg.org/btzj2n66j/Capture.png
this is my code
private void bindcombo ()
{
OleDbCommand com = new OleDbCommand();
OleDbDataReader reader;
com.Connection = db_con;
db_con.Open();
com.CommandText = "select * from colleges";
reader = com.ExecuteReader();
while(reader.Read())
{
string combo_items = reader.GetString("college_name");
college_name.Items.Add(combo_items);//college_name is a combobox
}
db_con.Close();
}
Reply
Answers (
2
)
Unassigned Local Variable
Relative Path at the time of deployment