Click here to Skip to main content
15,923,083 members
Home / Discussions / C#
   

C#

 
Generalconst vs static readonly Fields Pin
Nathan Blomquist30-May-03 6:46
Nathan Blomquist30-May-03 6:46 
GeneralRe: const vs static readonly Fields Pin
Eric Gunnerson (msft)30-May-03 13:19
Eric Gunnerson (msft)30-May-03 13:19 
GeneralApplication & Window positions Pin
BenjaminAlicea30-May-03 5:46
BenjaminAlicea30-May-03 5:46 
GeneralRe: Application & Window positions Pin
KingTermite30-May-03 6:38
KingTermite30-May-03 6:38 
GeneralRe: Application & Window positions Pin
Andy Smith30-May-03 8:43
Andy Smith30-May-03 8:43 
GeneralCombo boxes Pin
totig30-May-03 4:23
totig30-May-03 4:23 
GeneralRe: Combo boxes Pin
Carl Mercier30-May-03 5:37
Carl Mercier30-May-03 5:37 
GeneralRe: Combo boxes Pin
James T. Johnson31-May-03 18:36
James T. Johnson31-May-03 18:36 
This was asked on the DevelopMentor[^] lists not too long ago (02/25/03)... The solution as posted by Bob Beauchemin is to create a new binding context.

Current position in a DataSource is controlled by a CurrencyManager, which is associated with a DataSource/BindingContext pair. An application starts with a BindingContext per Form, controls inherit their parent's BindingContext.

Controls that have the same CurrencyManager (ie, same DataSource and same BindingContext) stay in sync. If you want controls that share the same DataSource NOT to stay in sync, you can allocate additional BindingContexts. This can be done for a group of controls through a common parent (ex. Panel) or on a per-control basis, ie.

dropdown1.DataSource = someds;
dropdown2.DataSource = someds;
// etc, binding other data properties

BindingContext bc = new BindingContext();
// don't want this dropdown synchronized
// if using same DataSource
dropdown2.BindingContext = bc;


Its a little heavy, but much better than making a copy of all of your data.

HTH,

James

"I despise the city and much prefer being where a traffic jam means a line-up at McDonald's"
Me when telling a friend why I wouldn't want to live with him

GeneralSession problems Pin
Peter Kiss30-May-03 1:51
Peter Kiss30-May-03 1:51 
GeneralRe: Session problems Pin
Rocky Moore30-May-03 23:19
Rocky Moore30-May-03 23:19 
GeneralRe: Session problems Pin
Peter Kiss31-May-03 0:49
Peter Kiss31-May-03 0:49 
GeneralRe: Session problems Pin
Rocky Moore1-Jun-03 4:42
Rocky Moore1-Jun-03 4:42 
GeneralRe: Session problems Pin
Peter Kiss1-Jun-03 5:31
Peter Kiss1-Jun-03 5:31 
GeneralMethod override Pin
BenjaminAlicea30-May-03 1:15
BenjaminAlicea30-May-03 1:15 
GeneralRe: Method override Pin
BenjaminAlicea30-May-03 5:20
BenjaminAlicea30-May-03 5:20 
GeneralRe: Method override Pin
BenjaminAlicea30-May-03 7:11
BenjaminAlicea30-May-03 7:11 
QuestionCan I use splitter to make a ruler ? Pin
JeffSayHi30-May-03 0:20
JeffSayHi30-May-03 0:20 
GeneralCustom controls problems Pin
Oleksandr Kucherenko29-May-03 23:56
Oleksandr Kucherenko29-May-03 23:56 
GeneralRe: Custom controls problems Pin
Oleksandr Kucherenko30-May-03 2:34
Oleksandr Kucherenko30-May-03 2:34 
GeneralRe: Custom controls problems Pin
James T. Johnson31-May-03 18:48
James T. Johnson31-May-03 18:48 
GeneralDescription pane in a property grid Pin
nico19329-May-03 23:19
nico19329-May-03 23:19 
GeneralRe: Description pane in a property grid Pin
David Stone30-May-03 6:53
sitebuilderDavid Stone30-May-03 6:53 
GeneralRe: Description pane in a property grid Pin
J. Dunlap30-May-03 7:47
J. Dunlap30-May-03 7:47 
GeneralRe: Description pane in a property grid Pin
David Stone30-May-03 8:54
sitebuilderDavid Stone30-May-03 8:54 
GeneralRe: Description pane in a property grid Pin
nico19330-May-03 11:38
nico19330-May-03 11:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.