B
buddha_bg
Hi there,
It's a simple and common scenario, i have a data entry form with two
buttons at bottom 'Apply changes' and 'Cancel'. I use Datasets.
I want to enable/disable these buttons, depending on, if the user has
made a single change to the data in some visual control.
How do i check if there were done any changes through the controls,
which are not yet updated to the dataset.
I must check somehow the BindingSource or its Datasource, which is a
DataView.
None of them have some properties like HasChanges. I cannot even check
for rows in new or edit state.
All these types of methods are available on the Datatable objects, but
the changes are not still poppulated there.
I dont want to call EndEdit everytime a user loses focus on a control
and triggers validation, so i can check the datatables for changes. I
also will not be able to do that when i am inserting a new row.
Hope someone got my question.
Thanks a lot in advance!
It's a simple and common scenario, i have a data entry form with two
buttons at bottom 'Apply changes' and 'Cancel'. I use Datasets.
I want to enable/disable these buttons, depending on, if the user has
made a single change to the data in some visual control.
How do i check if there were done any changes through the controls,
which are not yet updated to the dataset.
I must check somehow the BindingSource or its Datasource, which is a
DataView.
None of them have some properties like HasChanges. I cannot even check
for rows in new or edit state.
All these types of methods are available on the Datatable objects, but
the changes are not still poppulated there.
I dont want to call EndEdit everytime a user loses focus on a control
and triggers validation, so i can check the datatables for changes. I
also will not be able to do that when i am inserting a new row.
Hope someone got my question.
Thanks a lot in advance!