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
Angelito Borinaga
NA
3
659
how to retrieve images by using listview in c#
Oct 9 2015 1:49 PM
hi...
string sql = "Select ID,make,model,fueltype,transmission,drivetrain,price from details"; ;
MySqlConnection cnn = new MySqlConnection(con);
cnn.Open();
MySqlCommand cmd = new MySqlCommand(sql, cnn);
MySqlDataReader Reader = cmd.ExecuteReader();
listView1.Items.Clear();
while (Reader.Read())
{
ListViewItem lv = new ListViewItem(Reader.GetString(0));
lv.SubItems.Add(Reader.GetString(1));
lv.SubItems.Add(Reader.GetString(2));
lv.SubItems.Add(Reader.GetString(3));
lv.SubItems.Add(Reader.GetString(4));
lv.SubItems.Add(Reader.GetString(5));
lv.SubItems.Add(Reader.GetString(6));
listView1.Items.Add(lv);
}
Reader.Close();
cnn.Close();
so far this is my code for getting info on the listview my problem is how to get the image in picturebox by clicking info in lisview pls help as soon as you can i need it badly
Reply
Answers (
2
)
Serualizable class in C#
how to find duplicate record devexpress gridview