User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 455,969 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,760 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1493 | Replies: 3
Reply
Join Date: Sep 2006
Location: Indiana USA
Posts: 12
Reputation: kingflux is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
kingflux's Avatar
kingflux kingflux is offline Offline
Newbie Poster

Help New textbox in user control broke datagrid sorting

  #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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Location: California
Posts: 18
Reputation: shaulf is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
shaulf's Avatar
shaulf shaulf is offline Offline
Newbie Poster

Re: New textbox in user control broke datagrid sorting

  #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  
Join Date: Sep 2006
Location: Indiana USA
Posts: 12
Reputation: kingflux is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
kingflux's Avatar
kingflux kingflux is offline Offline
Newbie Poster

Re: New textbox in user control broke datagrid sorting

  #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  
Join Date: Dec 2003
Location: Nashville, TN
Posts: 2,333
Reputation: alc6379 has a spectacular aura about alc6379 has a spectacular aura about alc6379 has a spectacular aura about 
Rep Power: 11
Solved Threads: 102
Colleague
alc6379's Avatar
alc6379 alc6379 is offline Offline
Cookie... That's it

Re: New textbox in user control broke datagrid sorting

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 9:11 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC