Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 24th, 2006, 05:29 AM
Registered User
 
Join Date: Jul 2006
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
 
Old July 24th, 2006, 08:59 AM
Friend of Wrox
 
Join Date: May 2006
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
 
Old July 25th, 2006, 01:17 AM
Registered User
 
Join Date: Jul 2006
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





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





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