Hi
I have a form with a combo and a datagrid

The combo has these properties:
Datasource: DataSet11.tPersoner
Displaymember: ChristianName
It does not have any databindings

The datagrid has these properties:
Dim dv As DataView = DataSet11.tPersoner.DefaultView
DataGrid1.DataSource = dv

Because I want different bindingmanagers for the two controls.

Now when I change the current cell in the datagrid (by clicking with the
mouse) they are not synchronized (which I don´t want them to be). But if I
sort the datagrid by clicking on a column header suddenly the combo shows
the ChristianName of an (appearantly random) row in the datagrid.

(I have created two different CurrencyManagers for the controls. And they
are not synchronized. their .Position are not the same)

It seems strange to me.

Any explanations?


best regards

Jan

Re: Is this a datagrid/combo bug??? by Rajesh

Rajesh
Fri Nov 07 11:33:07 CST 2003

try to configure dataview without defaultview. means, configure thru
tablename property. and check

hope that helps

Rajesh Patel

"Jan Nielsen" <ReplyInNewsgroup@tiscali.dk> wrote in message
news:et6zJqUpDHA.2652@TK2MSFTNGP09.phx.gbl...
> Hi
> I have a form with a combo and a datagrid
>
> The combo has these properties:
> Datasource: DataSet11.tPersoner
> Displaymember: ChristianName
> It does not have any databindings
>
> The datagrid has these properties:
> Dim dv As DataView = DataSet11.tPersoner.DefaultView
> DataGrid1.DataSource = dv
>
> Because I want different bindingmanagers for the two controls.
>
> Now when I change the current cell in the datagrid (by clicking with the
> mouse) they are not synchronized (which I don´t want them to be). But if I
> sort the datagrid by clicking on a column header suddenly the combo shows
> the ChristianName of an (appearantly random) row in the datagrid.
>
> (I have created two different CurrencyManagers for the controls. And they
> are not synchronized. their .Position are not the same)
>
> It seems strange to me.
>
> Any explanations?
>
>
> best regards
>
> Jan
>
>



Re: Is this a datagrid/combo bug??? by Jan

Jan
Fri Nov 07 13:47:14 CST 2003

Hi Rajesh
Thanks for answering.
That solved the problem. But did not explain why the original problem
arouse.

Thanks

Jan



"Rajesh Patel" <rdp647@hotmail.com> skrev i en meddelelse
news:e9gl9WVpDHA.1072@TK2MSFTNGP09.phx.gbl...
> try to configure dataview without defaultview. means, configure thru
> tablename property. and check
>
> hope that helps
>
> Rajesh Patel
>
> "Jan Nielsen" <ReplyInNewsgroup@tiscali.dk> wrote in message
> news:et6zJqUpDHA.2652@TK2MSFTNGP09.phx.gbl...
> > Hi
> > I have a form with a combo and a datagrid
> >
> > The combo has these properties:
> > Datasource: DataSet11.tPersoner
> > Displaymember: ChristianName
> > It does not have any databindings
> >
> > The datagrid has these properties:
> > Dim dv As DataView = DataSet11.tPersoner.DefaultView
> > DataGrid1.DataSource = dv
> >
> > Because I want different bindingmanagers for the two controls.
> >
> > Now when I change the current cell in the datagrid (by clicking with the
> > mouse) they are not synchronized (which I don´t want them to be). But if
I
> > sort the datagrid by clicking on a column header suddenly the combo
shows
> > the ChristianName of an (appearantly random) row in the datagrid.
> >
> > (I have created two different CurrencyManagers for the controls. And
they
> > are not synchronized. their .Position are not the same)
> >
> > It seems strange to me.
> >
> > Any explanations?
> >
> >
> > best regards
> >
> > Jan
> >
> >
>
>



Re: Is this a datagrid/combo bug??? by rdp647

rdp647
Fri Nov 14 12:21:15 CST 2003

because, when you work directly work with datatable. it's actually
work with defaultview. so, indirectly, you were binding same
currencymanagers for 2 controls. now, you created exclusive dataview
with different currencymanagers and it works

Rajesh Patel

"Jan Nielsen" <ReplyInNewsgroup@tiscali.dk> wrote in message news:<uqYN1fWpDHA.2592@TK2MSFTNGP10.phx.gbl>...
> Hi Rajesh
> Thanks for answering.
> That solved the problem. But did not explain why the original problem
> arouse.
>
> Thanks
>
> Jan
>
>
>
> "Rajesh Patel" <rdp647@hotmail.com> skrev i en meddelelse
> news:e9gl9WVpDHA.1072@TK2MSFTNGP09.phx.gbl...
> > try to configure dataview without defaultview. means, configure thru
> > tablename property. and check
> >
> > hope that helps
> >
> > Rajesh Patel
> >
> > "Jan Nielsen" <ReplyInNewsgroup@tiscali.dk> wrote in message
> > news:et6zJqUpDHA.2652@TK2MSFTNGP09.phx.gbl...
> > > Hi
> > > I have a form with a combo and a datagrid
> > >
> > > The combo has these properties:
> > > Datasource: DataSet11.tPersoner
> > > Displaymember: ChristianName
> > > It does not have any databindings
> > >
> > > The datagrid has these properties:
> > > Dim dv As DataView = DataSet11.tPersoner.DefaultView
> > > DataGrid1.DataSource = dv
> > >
> > > Because I want different bindingmanagers for the two controls.
> > >
> > > Now when I change the current cell in the datagrid (by clicking with the
> > > mouse) they are not synchronized (which I don´t want them to be). But if
> I
> > > sort the datagrid by clicking on a column header suddenly the combo
> shows
> > > the ChristianName of an (appearantly random) row in the datagrid.
> > >
> > > (I have created two different CurrencyManagers for the controls. And
> they
> > > are not synchronized. their .Position are not the same)
> > >
> > > It seems strange to me.
> > >
> > > Any explanations?
> > >
> > >
> > > best regards
> > >
> > > Jan
> > >
> > >
> >
> >