G
Guest
Hi all,
A .Net 1.1 question
I have a DataGrid bound to a DataView and 2 TextBoxes bound to 2 columns in
the same DataView.
When I change the selected row in the DataGrid the text in the TextBoxes
change (The currency manager fires the PositionChanged event and the
TextBoxes adjust their data consequently)
The problem is when I change the text in one of the TextBoxes the DataGrid
is not synchronized with what is dispalyed in the TextBoxes.
To solve this problem I had to call EndEdit() on the DataRowView being
edited on Leave and Enter events of all controls? (If I just call EndEdit()
in the Leave event it requires to leave the first TextBox then leave the
second to see the data changed)
Is this the correct solution? Am I missing something? Are there any better
solutions?
I really appreciate if you provide me with a decent solution and an
explanation of what really happens?
A .Net 1.1 question
I have a DataGrid bound to a DataView and 2 TextBoxes bound to 2 columns in
the same DataView.
When I change the selected row in the DataGrid the text in the TextBoxes
change (The currency manager fires the PositionChanged event and the
TextBoxes adjust their data consequently)
The problem is when I change the text in one of the TextBoxes the DataGrid
is not synchronized with what is dispalyed in the TextBoxes.
To solve this problem I had to call EndEdit() on the DataRowView being
edited on Leave and Enter events of all controls? (If I just call EndEdit()
in the Leave event it requires to leave the first TextBox then leave the
second to see the data changed)
Is this the correct solution? Am I missing something? Are there any better
solutions?
I really appreciate if you provide me with a decent solution and an
explanation of what really happens?