When you paste data into cells that contain drop down lists, how do you stop them pasting data that isnt in the drop down lists? By default it seems to let you paste whatever you want into the cell and doesnt restrict them to pasting things that are in the dropdowns.
I tried using the ClipboardPasting event but couldnt find anything obvious to help me check the validity of the paste.
Thanks,Doug Rees
Polo Ralph Lauren
Hello Dong,
I have found a solution for your issue by EventSetter for EditModeEnding event in the EditorStyle for the XamComboEditor. Inside the event handler check for matching entered text in the XamComboEditor and existing items in the dropdown list is made and if no match is found changes are not accepted by setting e.AcceptChanges = false;.
I have created and attached a sample application that does the described above.
Please let me know if this is what you needed and if you require any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support
Hello Krasimir,
Im afraid you have missed my point. If you add copy and pasting to your grid (by adding AllowClipboardOperations="All") to the FieldLayoutSettings you can then paste invalid data into your comboboxes and the grid does not stop this. My post is about pasting data into these cells, not about having invalid data already in the combobox cells.
Try copying three cells from your second column and pasting them into your first column and you will see the grid does not stop this and your sample has no bearing on this issue as I think you misunderstood my issue.
Regards,Doug Rees