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
1155
Question on paste multiple rows?
posted

Hi,

I am new to xamDataGrid and I have question on how to archieve paste multiple rows when I select the last row in the data grid.

I always get a message "The area taht you are trying to paste the clipboard infomration does not have enough rows. Continue will copy as much in information as can fit in the cells available but will result in loss of data. Continue with operation?"

If I press ok, only the first row will be pasted.

What I want is that all other rows can be created as new, is this possible?

Thank you!

Parents
  • 890
    posted

    Hi Ima,

    In order to paste the selected record (s) you need to select the add new row and then press paste. To enable the add new row set: XDP.FieldLayoutSettings.AllowAddNew to true.

    If for some reason you don’t wish to show the Add new row all the time you can hook to the copy command and enable the add new only then and after paste was execute to hide it.

    Thanks,

    Slavi

Reply Children