I have a WPF DataGrid. The users can edit the data in cell. I want a event in that I want to check if cell is empty. User can empty the data by using Del Backspace Cut options etc.
Give me a event and event handler to do that. I already tries OnCellEditEnding event but this will trigger only if edit is finished. I want to check cell is empty dynamically each time when user inputs.
each datagridcell has a textbox as its content when it is in the edit mode. you can check the text Length written in that textbox whenever a key is down (by handling onKeyDown or onPreviewKeyDown event)
edit:
use PreparingCellForEdit event, sth like this: