I have a DataGrid that I would like to validate.
So I listen to the validating event.
However, my problem is that the UI changes are not reflected to the underlying datasource if the user just quit the dataGrid
For example, ona fomr with one dataGrid and one TextBox
The user clicks on the DataGrid, change one value and then click directly in the TextBox
So when I iterate thru my datasource rows, I still have the old value. I think it is because it assume the edition has not been accepted.
I tried to call AcceptChange on my row, but doesn't change anything.
So how can I do ?
Thanks,
So I listen to the validating event.
However, my problem is that the UI changes are not reflected to the underlying datasource if the user just quit the dataGrid
For example, ona fomr with one dataGrid and one TextBox
The user clicks on the DataGrid, change one value and then click directly in the TextBox
So when I iterate thru my datasource rows, I still have the old value. I think it is because it assume the edition has not been accepted.
I tried to call AcceptChange on my row, but doesn't change anything.
So how can I do ?
Thanks,