I need to catch the moment when the selection has been deselected from a cell of a specific DataGrid column. What is needed for this event? I'm afraid that the usual LostFocus will not work, because firstly, the index does not know where exactly the selection was removed, and secondly I will have to return the selection in case of incorrect data in the cell.

  • "Cells of a specific column" - uh, but inside what control? - VladD
  • And LostFocus is a very similar way to find out when the focus has gone. There is no other way, of course. Edit the handler code. - VladD
  • @VladD oh forgot to write a datagrid of course. - PECHAPTER
  • If you need validation, you need to do something like this: msdn.microsoft.com/en-us/library/ee622975%28v=vs.100%29.aspx . Low-level khaki-type focus checks are a bad way. - VladD 2:44 pm

0