Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1360
Pasting data over combobox cells
posted

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

Parents
No Data
Reply
  • 30945
    Offline posted

    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

    XamDataGridComboBoxCells.zip
Children