Hi
I'm using a xamDataGrid with hosted WPF controls as described here:
http://blogs.infragistics.com/blogs/andrew_smith/archive/2009/03/27/hosting-wpf-controls-in-a-xamdatagrid-cell.aspx
Some of my columns show a checkbox as render and edit control. Now I have to click twice on a cell in order to change the checkbox state (first click actives cell and switches to edit mode; second click changes checkbox state). Is it possible to get there with one click?
Hello Dunken,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
I'm sorry for replying so late. Your solution didn't help me because as far as I understand it works with Infragistics components only. I, however, work with my own WPF editors and renderers (as mentioned in the blog post).
Since I cannot be completely sure how you create your editor, could you please send me an isolated sample project, where the issue you described is reproduced, I will be able to think of a possible solution for you.
Looking forward for your reply.
OK, I attached a sample. Thank you!
I have been looking into your sample project and I modified it, so now it works as you want. Basically I set the CellValuePresenter’s ContentTemplate to your custom editor instead of EditorStyle. Please let me know if this helps you or you need further assistance on this matter.