Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataGrid Binding Event Question

Status
Not open for further replies.

stardv

Technical User
May 27, 2004
33
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top