New textbox in user control broke datagrid sorting

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2006
Posts: 12
Reputation: kingflux is an unknown quantity at this point 
Solved Threads: 0
kingflux's Avatar
kingflux kingflux is offline Offline
Newbie Poster

New textbox in user control broke datagrid sorting

 
0
  #1
Nov 26th, 2007
Hello, all-- Our ASP.NET 2003 app's primary screen uses a datagrid with clickable headers for sorting by column. There is a "user control" with two list boxes from which the user filters the datagrid rows. I added a textbox in the user control -- changed nothing else* -- and now clicking on a datagrid header does nothing. The new textbox is set to autopostback.

Any ideas? I'm happy to provide any helpful details. THANK YOU in advance!

-Tim

*Note: The new textbox is for the user to assign a purchase order number, so it is not used to change the datagrid's dataset.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 18
Reputation: shaulf is an unknown quantity at this point 
Solved Threads: 4
shaulf's Avatar
shaulf shaulf is offline Offline
Newbie Poster

Re: New textbox in user control broke datagrid sorting

 
0
  #2
Nov 30th, 2007
It's hard to say just based on what you said but one thing I did have a couple of times with VS2003 is that I lost controls event bindings after saving changes in the designer. Check the Initialization event and make sure your grid is still connected to the events...
Shaul
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 12
Reputation: kingflux is an unknown quantity at this point 
Solved Threads: 0
kingflux's Avatar
kingflux kingflux is offline Offline
Newbie Poster

Re: New textbox in user control broke datagrid sorting

 
0
  #3
Nov 30th, 2007
Hello, Shaul-- I'm relieved to see your post. I was just getting to post my own reply saying the Handles dgCatalog.SortCommand had disappeared from my code-behind. It happened to some custom "filter" event handlers, too.

Anybody out there know why this happens? Is the VS designer overrated or what? (I've had trouble with it adding stuff, too.)

I'm downloading the Visual Studio 2008 Pro demo now...have been waiting for it all week. Can't wait to see what chaos it will create for me next.

THANK YOU, Shaul!

-Tim
Last edited by kingflux; Nov 30th, 2007 at 3:52 pm. Reason: grammar police
Reply With Quote Quick reply to this message  
Join Date: Dec 2003
Posts: 2,414
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Solved Threads: 123
Team Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: New textbox in user control broke datagrid sorting

 
0
  #4
Dec 7th, 2007
Yeah... the Visual Studio designer is nice... sometimes.

I've had it do all kinds of crazy things, like make new EventHandlers when there's nothing at all wrong with the one you already built. It's just one of the quirks I've come to live with...
Alex Cavnar, aka alc6379
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC