944,184 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 2865
  • ASP.NET RSS
Nov 26th, 2007
0

New textbox in user control broke datagrid sorting

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kingflux is offline Offline
12 posts
since Sep 2006
Nov 30th, 2007
0

Re: New textbox in user control broke datagrid sorting

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...
Reputation Points: 10
Solved Threads: 4
Newbie Poster
shaulf is offline Offline
18 posts
since Nov 2007
Nov 30th, 2007
0

Re: New textbox in user control broke datagrid sorting

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kingflux is offline Offline
12 posts
since Sep 2006
Dec 7th, 2007
0

Re: New textbox in user control broke datagrid sorting

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...
Team Colleague
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
alc6379 is offline Offline
2,519 posts
since Dec 2003

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: How to add dynamic row in datagrid?
Next Thread in ASP.NET Forum Timeline: Authentication





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC