Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 24th, 2006, 05:29 AM
Registered User
 
Join Date: Jul 2006
Location: Kathmandu, None, Nepal.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Issue regarding the control redrawing...

I have got two fields in a datatable consisting of "ID" and "FirstName", i have implemented two combobox to display those ID and "FirstName" separately....The requirement is that if i selected a certain "ID" then its corresponding "FirstName" should be reflected in the corresponding FirstName combobox. The vice-versa should also be true.Moreover those ID and FirstName should be in sorted order.

So i used a binding source to sort the value in the combobox in "Enter" event. Such that when the control/focus enters "ID" the ID combobox is populated with the sorted IDs and when FirstName combobox is entered, the data are sorted my "FirstName". However i am getting a control redrawing problem in slow PCs such that when i click/enter the "ID" combobox, while the data is being sorted in that combobox the "FirstName" control/combobox disappears for a sec or 2.

How could i solve this problem....??? Please help....

Thanks in advance..

ruleDworld
Reply With Quote
  #2 (permalink)  
Old July 24th, 2006, 08:59 AM
Friend of Wrox
 
Join Date: May 2006
Location: Delhi, Delhi, India.
Posts: 106
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Why don't u use hashtable or sortedlist and SelectedIndexChanged event of combobox

Bijgupt
Reply With Quote
  #3 (permalink)  
Old July 25th, 2006, 01:17 AM
Registered User
 
Join Date: Jul 2006
Location: Kathmandu, None, Nepal.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by bijgupt
 Why don't u use hashtable or sortedlist and SelectedIndexChanged event of combobox

Bijgupt
How could that be done could you please write in more detail....

ruleDworld
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Control Instantiation Issue ef1196 C# 2005 4 December 13th, 2007 10:42 AM
Wizard Control Issue mahajanvit ASP.NET 2.0 Basics 0 September 15th, 2006 12:57 AM
Drop Down List Control Issue PrinceAli0 ASP.NET 2.0 Basics 0 June 9th, 2006 01:46 PM
Help! Custom Server Control using User Control diehard ASP.NET 1.0 and 1.1 Professional 2 January 4th, 2006 12:33 PM
User Control Issue bloveall General .NET 3 September 27th, 2004 11:14 PM



All times are GMT -4. The time now is 04:15 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.