title: How to understand CurrentCell is in edit mode or not in WPF DataGrid?
body: <p>I am creating custom <code>DataGrid</code>. When i press the keyboard i want to learn <code>CurrentCell</code> is in edit mode or not. I know how to handle <code>KeyDown</code> event. I found <a href="https://stackoverflow.com/questions/3279502/how-to-determine-whether-a-wpf-datagrid-is-in-edit-mode">this</a> and <a href="https://stackoverflow.com/questions/3248023/code-to-check-if-a-cell-of-a-datagrid-is-currently-edited">this</a> post. The solutions there didn't help solve my problem. I couldn't find a better way to find out if <code>CurrentCell</code> is in edit mode or not. How can i achieve this? Is there any solution?</p>