Class GridQueryOleDataSourceDataEventArgs
Provides data about the QueryOleDataSourceData event.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridQueryOleDataSourceDataEventArgs : SyncfusionHandledEventArgs
Remarks
GridQueryOleDataSourceDataEventArgs is a custom event argument class used by the QueryOleDataSourceData even when a user starts dragging a range of selected cells using OLE drag-and-drop.
This event lets you supply your own clipboard formats or add support for pasting additional clipboard content.
Constructors
GridQueryOleDataSourceDataEventArgs(IDataObject, GridRangeInfoList, Int32, Int32, Int32)
Initializes the new instances of the GridQueryOleDataSourceDataEventArgs class.
Declaration
public GridQueryOleDataSourceDataEventArgs(IDataObject dataObject, GridRangeInfoList rangeList, int dragDropFlags, int rowCount, int colCount)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.IDataObject | dataObject | The data object where data for the OLE drag operation is stored. |
GridRangeInfoList | rangeList | You can save here a list of ranges that have been copied. This property will only be checked for the Copy operation. Can be NULL. |
System.Int32 | dragDropFlags | Lets you specify default behavior, e.g. if styles or text should be supplied, if row or column headers should be ignored. |
System.Int32 | rowCount | The number of rows that have been copied into the dataobject. Set this value if you modified the DataObject. |
System.Int32 | colCount | The number of columns that have been copied into the dataobject. Set this value if you modified the DataObject. |
Properties
ColCount
Gets or sets the number of columns that have been copied into the dataobject. Set this value if you modified the DataObject.
Declaration
[TraceProperty(true)]
public int ColCount { get; set; }
Property Value
Type |
---|
System.Int32 |
DataObject
Gets the data object where data for the OLE drag operation are stored.
Declaration
public IDataObject DataObject { get; }
Property Value
Type |
---|
System.Windows.Forms.IDataObject |
DragDropFlags
Gets or sets the behaviour. Lets you specify default behavior, e.g. if styles or text should be supplied, if row or column headers should be ignored.
Declaration
[TraceProperty(true)]
public int DragDropFlags { get; set; }
Property Value
Type |
---|
System.Int32 |
IgnoreCurrentCell
Gets or sets a value indicating whether to ignore the current cell. This property will only be checked by the calling method if you do not set Handled to True.
Declaration
[TraceProperty(true)]
public bool IgnoreCurrentCell { get; set; }
Property Value
Type |
---|
System.Boolean |
RangeList
Gets or sets the range list. You can save here a list of ranges that have been copied. This property will only be checked for the Copy operation. Can be NULL.
Declaration
[TraceProperty(true)]
public GridRangeInfoList RangeList { get; set; }
Property Value
Type |
---|
GridRangeInfoList |
Result
Gets or sets a value indicating whether the return value the called method should return when you set Handled to True.
Declaration
[TraceProperty(true)]
public bool Result { get; set; }
Property Value
Type |
---|
System.Boolean |
RowCount
Gets or sets the number of rows that have been copied into the dataobject. Set this value if you modified the DataObject.
Declaration
[TraceProperty(true)]
public int RowCount { get; set; }
Property Value
Type |
---|
System.Int32 |