We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Grid Control Exception when Cell Selection Dragged onto a Push Button and 'Copy Series' or 'Fill Series' clicked.

When the Grid Control Cell Selection Dragged 
     - over a Push Button and 'Copy Series' or 'Fill Series' is clicked; push button image gets removed and turns red with a exception text.
     - over a combobox the combobox text changes too.
How do we not allow user drag it over any other cell which is not normal text cell or dragging over any other cell which contains text should not affect the grid cell. 

How do we achieve this?
Attached the output screenshot,

Best Regards,


Attachment: Capture_2de9079.zip

1 Reply

MG Mohanraj Gunasekaran Syncfusion Team October 24, 2016 11:51 AM UTC

Hi Nilofer,  
  
Thanks for using Syncfusion products,  
  
  
When the Grid Control Cell Selection Dragged   
     - over a Push Button and 'Copy Series' or 'Fill Series' is clicked; push button image gets removed and turns red with a exception text.  
     - over a combobox the combobox text changes too.  
  
  
We can able to reproduce your scenario for ComboBox CellType. But we are unable to reproduce the exception text thrown for the PushButton CellType when using the Copy series or Fill series. Here, we have attached our tested sample.  If our provided sample is differed from your sample, please modify the below attached sample with your settings which reproduces the issue. It will be helpful to provide the solution at the earliest.  
How do we not allow user drag it over any other cell which is not normal text cell or dragging over any other cell which contains text should not affect the grid cell. How do we achieve this?  
  
In order to customize the Copy and Fill series, you can achieve by implement the custom class ExcelMarkerMouseController and MouseControllerDispatcher property. Please refer the below code snippet and refer the attached sample.   
  
Code snippet:  
ExcelMarkerMouseController marker = new ExcelMarkerMouseController(this.gridControl1);  
this.gridControl1.MouseControllerDispatcher.Add(marker);  
  
Note:  
In below attached sample Copy and Fill series only allow for TextBox cell type.  
  
   
Sample link: GridControl  
  
Regards,  
Mohanraj G.   


Loader.
Up arrow icon