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
205
XamGrid V2012.1 paste as new rows into grid from Excel
posted
 
Hi,
Am evaluating the Xamgrid for our LOB using sliverlight, am using the V2012.1 package and like to clarify some issues with the paste functionality.
 
      private void xamGridAddNewCpty_ClipboardPasting( object sender, Infragistics.Controls.Grids.ClipboardPastingEventArgs e )
        {
           e.PasteAsExcel();            
        }
 
Using the above code I can paste to a Grid that has 1 row 3 cells, but if the Excel copy has more rows than thats in the grid, then the data is not pasted into the grid, 
hooking into the below event i get a truncation error, can you suggest me the correct settings to be set or any code block that i need to implement to get this functionality.
 
        private void xamGridAddCpty_ClipboardPasteError( object sender, ClipboardPasteErrorEventArgs e )
        {
            
            bool b = e.IsRecoverable;
        }
 
NOTE : No code behind permitted in our project except the basic ones, so preferrably if you can provide a MVVM way of doing it, its much appreciated.
Parents Reply Children
No Data