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
b_moorjani
NA
1
0
Preselect a multi simple listbox from a datareader
Feb 24 2005 7:03 PM
Hey guys an absolute new c# developer I can't figure this out so please help this.sqlConnection1.Open (); SqlDataReader dr; dr = this.cmdselected.ExecuteReader(); while (dr.Read()) { if( Convert.ToInt32(dr["SupplierId"]) == 3) { int indexnew = this.listBox1.Items.IndexOf (dr["ProductName"]); this.listBox1.SetSelected (indexnew,true); } } dr.Close (); this.sqlConnection1.Close();
Reply
Answers (
1
)
prevent minimize
help with creating dialog to find file