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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

127036 Oct 23,2016 12:25 PM UTC Oct 24,2016 11:51 AM UTC WinForms 1
loading
Tags: GridControl
Nilofer
Asked On October 23, 2016 12:25 PM UTC

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

Mohanraj Gunasekaran [Syncfusion]
Replied On 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.   


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;