Hello everyone,
Could you please help me with solving some trick issue.
Here is what I have and what I want to do.
I have dataGrid databinded to a dataTable. It looks like binding happens whenever dataGrid cell looses the focus. I would like to change it to make it happen when ENTER is pressed and when ESC is pressed or cell is left without enter, rallback the changes and fill the old value in dataGrid and do not make any changes to dataTable.
Mabey I made my explanation too complicated, I can try to explain in other words if it is hard to understand.
My ultimate goal is to have data validation when data is edited in a dataGrid cell and have a key stroke control over the dataCell so if entry is not validate it will not be synchronized with a dataTable and will go to old value or it will bind if data is valid and Enter key is press.
I tried many things that did not work.
Your help will be greatly appreciated and favor will be returned.
Thank you so much
Could you please help me with solving some trick issue.
Here is what I have and what I want to do.
I have dataGrid databinded to a dataTable. It looks like binding happens whenever dataGrid cell looses the focus. I would like to change it to make it happen when ENTER is pressed and when ESC is pressed or cell is left without enter, rallback the changes and fill the old value in dataGrid and do not make any changes to dataTable.
Mabey I made my explanation too complicated, I can try to explain in other words if it is hard to understand.
My ultimate goal is to have data validation when data is edited in a dataGrid cell and have a key stroke control over the dataCell so if entry is not validate it will not be synchronized with a dataTable and will go to old value or it will bind if data is valid and Enter key is press.
I tried many things that did not work.
Your help will be greatly appreciated and favor will be returned.
Thank you so much