PC Review


Reply
Thread Tools Rate Thread

blanking a listbox

 
 
UpRider
Guest
Posts: n/a
 
      30th Oct 2009
I have a gridview that supplies a parameter to a query that populates a
listbox via a sqlDataSource. Works fine. When I change the page of the
gridview (and I deselect the gridview row via code in the pagechange event),
the existing rows in the listbox remain there, even though no row in the
gridview is selected. How do I fix this? Listbox.databind after deselecting
the gridview row does not work.
TIA,
UpRider

 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      1st Nov 2009
On Oct 30, 5:30*am, "UpRider" <good...@nothere.com> wrote:
> I have a gridview that supplies a parameter to a query that populates a
> listbox via a sqlDataSource. *Works fine. *When I change the page of the
> gridview (and I deselect the gridview row via code in the pagechange event),
> the existing rows in the listbox remain there, even though no row in the
> gridview is selected. *How do I fix this? Listbox.databind after deselecting
> the gridview row does not work.
> TIA,
> UpRider


Add ListBox1.Items.Clear() to PageIndexChanging event. This would
remove all items from the listbox.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Blanking of PC screen Paul Richards Windows XP General 12 13th Oct 2009 08:21 PM
Screen Blanking Out =?Utf-8?B?SkQ=?= Windows Vista Administration 7 17th Mar 2008 04:53 AM
Cd-Rom is blanking out =?Utf-8?B?TG9zdCBpbiBteSBPd24gV29ybGQ=?= Windows XP Help 0 8th Jun 2006 08:35 PM
Blanking Zero Values Jerry Microsoft Excel Discussion 2 10th Dec 2003 02:44 AM
charts blanking Mike Microsoft Excel Charting 1 12th Aug 2003 01:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:54 AM.