I have a RadGridview where I select 3 cells and I paste 5 cells copied from excel,notepad,etc., now i have 2 new rows added(empty rows acting as new row). I tried setting insertnewrows=false and also allselectedcells but no use. help would be appreciated.
I have prepared a sample project, in order to test this, however, I am sure that I am missing something of importance because, on my end, new rows are not created when pasting values. Would it be possible to give the attached project a try and let me know how I can reproduce this behavior?
Usually, when we send a sample project, the needed Telerik assemblies for it are not included. This is intentional, in order to keep the size of the .zip file as small as possible when transferring it, as well as that the receiving end usually has the required assemblies for testing the application.
Regarding the missing RadGridView control, this is usually the case when the NoXaml assemblies are used without applying a theme. More information on this scenario could be found in the following article:
With this being said, I have attached the sample project from my initial comment to this thread, modified to include the needed packages once it is built.
Hi,
I don't want Add blank row on RadGridview when I am trying to paste excel to grid.
For example -
I am pasting 4 cell of data from excel to gridview which has two row of data and one new row by default.
after pasting this 4 cell of data into a particular column (price column) two new blank rows are added which perform like a new row.
I need to restrict this behavior, refer the attachment.
we have gone through your sample project but we have facing below issues.
1. Telerik DLL are not loaded
2. when we use our version (2019)of Telerik DLL grid view is not loaded.
Hello Shivam,
Usually, when we send a sample project, the needed Telerik assemblies for it are not included. This is intentional, in order to keep the size of the .zip file as small as possible when transferring it, as well as that the receiving end usually has the required assemblies for testing the application.
Regarding the missing RadGridView control, this is usually the case when the NoXaml assemblies are used without applying a theme. More information on this scenario could be found in the following article:
Missing Controls in the UI | Telerik UI for WPF
With this being said, I have attached the sample project from my initial comment to this thread, modified to include the needed packages once it is built.