IF I put setting for XamGrid like:
then double click on cell in a row will enter Edit Mode. If XamGrid lost focus, it will quit Edit Mode.
but I want to Quit Edit mode in code. How to quit Edit Mode in code-behind?
Update: try XamGrid.ExitEditMode(true/false) in SelectionChanged event handler of XamComboEditor and got error(see screenshot).
Hi,
Glad to hear your question is resolved.
Please let me know if there is anything further I can help you with.
Thank you. I got a solution for this case.
I see the sample that Matt created for you. But judging by what you described in this thread the answer is not dependent on the ICommands that you used in the other case. You and he were working specifically with the xamComboEditor.and closing the dropdown when an item was selected.
You might want to review this documentation concerning Editing Data and Editing Events and Methods.
http://help.infragistics.com/NetAdvantage/Silverlight/2012.1/CLR4.0/?page=xamGrid_Editing_Data.html
You can use ExitEditMode to exit edit mode from code behind.
And you could use CellExitingEditMode to cancel the edit but you will hit that code every time you exit editing on a cell, whether the grid loses focus or the cell loses focus. You may need to determine some criteria for when to use e.Cancel = True and when to let the normal process continue. You can determine which cell you were in from the arguments.
Please let me know if you have any questions.
My situation for this case is for this post:http://ko.infragistics.com/community/forums/t/73700.aspx
I use the latest infragistics 2012 for SL.
It doesn't look like your "settings" attached to the thread. If you could zip them up and attach them as a file.
And could you confirm if you are using NetAdvantage for Silverlight 2012 Vol.1, and which specific service release are you using?
I will try to build a sample based on your description unless you have one that you can share.