Hi, I am writing a program that has a listbox which is bound to a dataset. When I click a button (e.g. delete) the item is deleted from the database ok using an SQL query but is still shown in the listbox. How do I get the listbox to refresh/update its display? Any help is greatly appreciated.
rumpleteaser33
0
Newbie Poster
Recommended Answers
Jump to Post>How do I get the listbox to refresh/update its display?
Re-bind the listbox.
Jump to PostHi,
Personally, I wouldn't refresh the entire listbox. I'd just (programatically) select the relevant listbox item and remove it in the button click event.
Chris.
All 8 Replies
kvprajapati
1,826
Posting Genius
Team Colleague
Chris147
0
Junior Poster in Training
rumpleteaser33
0
Newbie Poster
kvprajapati
1,826
Posting Genius
Team Colleague
Chris147
0
Junior Poster in Training
rumpleteaser33
0
Newbie Poster
kvprajapati
1,826
Posting Genius
Team Colleague
rumpleteaser33
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.