A
Allan Bredahl
Hi All
I have a bit of a problem with using a datarow to store data that is show in
a form.
On form load I set the Value/Text properties of my form elements to the
specific Column values of the DataRow which works just fine.
On form close I assign the specific DataRow Column values to the value of
the form elements, to update the datarow to the newest values.
The problem is that even if I make no changes to the form the DataRow is
changed afterwards no matter what.
The ColumnChanging event is not raised on my datatable, but as soon as I
call the EndEdit method on the datarow, the RowChanged event is raised on
the DataTable.
Even if I make no assignments to the Row values on form close, the
RowChanged event is raised anyhow.
Is this a normal behavior of the datatable to always see the row as changed
if EndEdit is called ??
I'm a bit confused.
Tanks in advance
Allan
I have a bit of a problem with using a datarow to store data that is show in
a form.
On form load I set the Value/Text properties of my form elements to the
specific Column values of the DataRow which works just fine.
On form close I assign the specific DataRow Column values to the value of
the form elements, to update the datarow to the newest values.
The problem is that even if I make no changes to the form the DataRow is
changed afterwards no matter what.
The ColumnChanging event is not raised on my datatable, but as soon as I
call the EndEdit method on the datarow, the RowChanged event is raised on
the DataTable.
Even if I make no assignments to the Row values on form close, the
RowChanged event is raised anyhow.
Is this a normal behavior of the datatable to always see the row as changed
if EndEdit is called ??
I'm a bit confused.
Tanks in advance
Allan