Q
Qubeczek
Hello,
I have the following problem:
There is DataSet, DataTable in DataSet, DataView for this DataTable.
There is Form, GridView and BindingSource descendant laying on this form
(eg. MyBindingSource).
What I need:
After
MyBindingSource1.DataSource = MyDataView1
BindingSource creates its own CurrencyManager, where List propoerty is
coneccted to its own (BindingSource).
I wrote my own DataView, becouse I want to have one CurrencyManager to one
DataTable on ALL forms. So i created:
public class MyDataView : DataView, ICurrencyManagerProvider
{
....
}
And every MyDataView has its own CurrencyManager from one global
BindingContex
And, what is funny, during:
MyBindingSource1.DataSource = MyDataView1
the CurrencyManager property form MyDataView is readen, so I suppose, that
BindingSource calls MyDataView.CurrencyManager prooperty.
But still BindingSource creates its own CurrencyManager, and when I change
position in grid, CurrencyManager conected with MyDataView not working.
Of cource, BindingSource.CurrencyManager is read-only property ....
Please, has any one idea, how to menage this ??
Regards
Qubeczek
I have the following problem:
There is DataSet, DataTable in DataSet, DataView for this DataTable.
There is Form, GridView and BindingSource descendant laying on this form
(eg. MyBindingSource).
What I need:
After
MyBindingSource1.DataSource = MyDataView1
BindingSource creates its own CurrencyManager, where List propoerty is
coneccted to its own (BindingSource).
I wrote my own DataView, becouse I want to have one CurrencyManager to one
DataTable on ALL forms. So i created:
public class MyDataView : DataView, ICurrencyManagerProvider
{
....
}
And every MyDataView has its own CurrencyManager from one global
BindingContex
And, what is funny, during:
MyBindingSource1.DataSource = MyDataView1
the CurrencyManager property form MyDataView is readen, so I suppose, that
BindingSource calls MyDataView.CurrencyManager prooperty.
But still BindingSource creates its own CurrencyManager, and when I change
position in grid, CurrencyManager conected with MyDataView not working.
Of cource, BindingSource.CurrencyManager is read-only property ....
Please, has any one idea, how to menage this ??
Regards
Qubeczek