I am creating custom DataGrid. When i press the keyboard i want to learn CurrentCell is in edit mode or not. I know how to handle KeyDown event. I found this and this post. The solutions there didn't help solve my problem. I couldn't find a better way to find out if CurrentCell is in edit mode or not. How can i achieve this? Is there any solution?