Hi,
I have a problem with cell Editing.
When cell editmode ended, we send data to another device.
but edit and press escape key, also send data...
I don't want send data when press escape key.
I'm not good at english.................. every time I write this comment.. T_T
I want this
1. Press F2 And Write Data To Cell, Like 132, 144, 155....
2. And Enter Key, Send Data To Another Device ( It's OK)
Wrong Action
2. Um... It's Wrong number so I press Escape Key to Cancel.
3. But EditModeExited Event Send Data....
How can block this event? EditModeExited Event has no other option, only row number, column number....
Hello Joseph,
Thank you for your email post. To detect whether the user has confirmed or canceled the new value input you can use the “EditModeExiting” event (instead of the “EditModeExited” event).
The event arguments object of the “EditModeExiting” event exposes a “AcceptChanges” property for this purpose.
I am attaching a small sample showing how to do it.
Please do not hesitate to let me know if you have any further questions on this matter.
Sincerely,
Radko Kolev
Infragistics Inc.
www.infragistics.com/support
wow thank you very much!! that's exactly what I want
but I have one more question
why EditModeExiting event fire twice?? how can....um.. once?
And Is there way to hide selection rectangle?
Thanks for your answer and.... little late .. happy new year!!
Happy New Year to you too. I am wishing you all the best.
I am not sure of the concrete scenario of your application, but in the sample I have attached in my previous post the “EditModeExiting” event is fired only once when a change is made (or canceled). If possible please send me a sample application where the event is fired twice so I can further investigate it.
Regarding the hidden selection rectangle – it can be achieved by providing brush resources to the xamSpreadsheet with specific keys (in this case “CellSelectionDragBorder” and “CellSelectionHandleFill”) and with transparent color set. I’ve modified my last example to demonstrate how it can be done.
I find problems and correct!
When ListBoxSelectionItemChanged Event fire, XamSpreadSheet Itemsource change. And EditModeExited Event fire.
I don't know why this SelectionItemChanged Event makes EditModeExited event fire, but now source correct and problems gone~~
also hide selection rectangle works good!!
Thanks for your support and kind answer. Have a good day!
Thank you for your feedback.
I am very glad that you have manage to resolve your issue.
If you require any further assistance, please do not hesitate to ask.