D
David K.
My question concerns C# Windows Forms user controls.
I have created navigation user control. It gets the consumer
application parent control's (a Form) CurrencyManager to its bindable
property. In the user control, any change in the CurrencyManager
position is displayed OK.
The problem is that the position of the parent CurrencyManager stays
intact (doesn't change at all).
Here is the code of the consumer application:
private void Form1_Load(object sender, System.EventArgs e)
{
dataGrid1.DataSource = ds.Customers;
// Set the UserContol's properties
this.userControl11.ParentControl = this;
this.userControl11.ControlCurrencyManager = (CurrencyManager)
this.BindingContext[ds,"Customers"];
}
In methods, a reference parameter solves such problem, but I don't know
how to implement it with a user control.
Any help will be very much appreciated.
Thanks,
David
I have created navigation user control. It gets the consumer
application parent control's (a Form) CurrencyManager to its bindable
property. In the user control, any change in the CurrencyManager
position is displayed OK.
The problem is that the position of the parent CurrencyManager stays
intact (doesn't change at all).
Here is the code of the consumer application:
private void Form1_Load(object sender, System.EventArgs e)
{
dataGrid1.DataSource = ds.Customers;
// Set the UserContol's properties
this.userControl11.ParentControl = this;
this.userControl11.ControlCurrencyManager = (CurrencyManager)
this.BindingContext[ds,"Customers"];
}
In methods, a reference parameter solves such problem, but I don't know
how to implement it with a user control.
Any help will be very much appreciated.
Thanks,
David