Syncfusion.Grid.Windows


PasteCellText Event (GridModel)

Occurs for each cell when text is pasted from a buffer into several cells.
Syntax
'Declaration
 
<DescriptionAttribute("Occurs for each cell when text is pasted from a buffer into several cells.")>
<CategoryAttribute("Clipboard")>
Public Event PasteCellText As GridPasteCellTextEventHandler
'Usage
 
Dim instance As GridModel
Dim handler As GridPasteCellTextEventHandler
 
AddHandler instance.PasteCellText, handler
[Description("Occurs for each cell when text is pasted from a buffer into several cells.")]
[Category("Clipboard")]
public event GridPasteCellTextEventHandler PasteCellText
Event Data

The event handler receives an argument of type GridPasteCellTextEventArgs containing data related to this event. The following GridPasteCellTextEventArgs properties provide information specific to this event.

PropertyDescription
Gets or sets a value indicating whether operation should be aborted.  
(Inherited from System.ComponentModel.CancelEventArgs)
Gets the column index.  
Gets the row index.  
Gets the style information for the cell.  
Gets or sets the text to be pasted into the cell.  
Remarks

This event allows you to customize how to handle text pasted into a cell at run-time on demand.

If you do not wish the grid to make any changes to the cell, set System.Windows.Form.CancelEventArgs.Cancel to True. The grid will check this flag to see whether it should make changes to the cell.

If you do wish the grid to abort the current paste operation (in case several cells are pasted), set the GridPasteCellTextEventArgs.Abort flag to True.

The GridPasteCellTextEventArgs members, e.ColIndex and e.RowIndex, specify column and row of the cell. The e.Style member holds the GridStyleInfo object for the cell.

AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also