New to Telerik UI for WinFormsStart a free 30-day trial

Represents a service that manages drag and drop actions in RadGridView

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class RadGridViewDragDropService : RadDragDropService, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IMessageListener

Inheritance: objectDisposableObjectRadObjectRadServiceRadDragDropServiceRadGridViewDragDropService...

Implements: ICustomTypeDescriptorIDisposableIMessageListenerINotifyPropertyChanged

Inherited Members RadDragDropService.messageFilterAddedRadDragDropService.xOutlineFormOffsetRadDragDropService.yOutlineFormOffsetRadDragDropService.beginPointRadDragDropService.DisposeManagedResources()RadDragDropService.HandleLeftButtonUp()RadDragDropService.HandleEscKeyDown()RadDragDropService.PrepareContext()RadDragDropService.OnPreviewDragHint(PreviewDragHintEventArgs)RadDragDropService.IsDropTargetValid(ISupportDrop)RadDragDropService.RestoreOriginalMouseCursor()RadDragDropService.SetHintWindowPosition(Point)RadDragDropService.ShouldBeginDrag(Point, Point)RadDragDropService.CanStart(object)RadDragDropService.OnPreviewDragStart(PreviewDragStartEventArgs)RadDragDropService.PerformStart()RadDragDropService.Commit()RadDragDropService.OnPreviewDragDrop(RadDropEventArgs)RadDragDropService.GetDropTarget(Point, out Point)RadDragDropService.BeginDrag(Point, ISupportDrag)RadDragDropService.EndDrag(Point, RadControl)RadDragDropService.EndDrag()RadDragDropService.DoMouseMove(Point)RadDragDropService.CanCommitRadDragDropService.ValidCursorRadDragDropService.InitializedRadDragDropService.InvalidCursorRadDragDropService.UseDefaultPreviewRadDragDropService.DropTargetRadDragDropService.DropLocationRadDragDropService.HintWindowRadDragDropService.PreviewDragDropRadDragDropService.PreviewDragOverRadDragDropService.PreviewDropTargetRadDragDropService.PreviewDragStartRadDragDropService.PreviewDragHintRadService.CanOperate()RadService.Start(object)RadService.Stop(bool)RadService.Pause()RadService.Resume()RadService.OnStarted()RadService.OnStarting(RadServiceStartingEventArgs)RadService.OnStopped()RadService.OnStopping(RadServiceStoppingEventArgs)RadService.IsContextValid(object)RadService.Abort()RadService.PerformResume()RadService.PerformPause()RadService.SetContext(object)RadService.OnEnabledChanged()RadService.ContextRadService.AvailableAtDesignTimeRadService.StateRadService.NameRadService.EnabledRadService.StartingRadService.StartedRadService.StoppingRadService.StoppedRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.GetValue(RadProperty)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.SetValueCore(RadPropertyValue, object, object, ValueSource)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.AddStylePropertySetting(IPropertySetting)RadObject.GetInheritedValue(RadProperty)RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.IsPropertyCancelable(RadPropertyMetadata)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.PerformDispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing...

Constructors

Initializes a new instance of the RadGridViewDragDropService class.

C#
public RadGridViewDragDropService(RadGridViewElement gridViewElement)
Parameters:gridViewElementRadGridViewElement

The grid view element.

Properties

Gets or sets the allow auto scroll columns while dragging.

C#
public bool AllowAutoScrollColumnsWhileDragging { get; set; }
Property Value:

The allow auto scroll columns while dragging.

Gets or sets the allow auto scroll rows while dragging.

C#
public bool AllowAutoScrollRowsWhileDragging { get; set; }
Property Value:

The allow auto scroll rows while dragging.

Gets the behavior.

C#
public IGridDragDropBehavior Behavior { get; }
Property Value:

The behavior.

Gets the grid view element.

C#
public RadGridViewElement GridViewElement { get; }
Property Value:

The grid view element.

Methods

Disposes the drag hint.

C#
protected virtual void DisposeDragHint()

Gets the drag drop behavior.

C#
protected virtual IGridDragDropBehavior GetDragDropBehavior()
Returns:

IGridDragDropBehavior

Gets the table element at point.

C#
protected GridTableElement GetTableElementAtPoint(Point point)
Parameters:pointPoint

The point.

Returns:

GridTableElement

Handles the mouse move.

C#
protected override void HandleMouseMove(Point mousePosition)
Parameters:mousePositionPoint

The mouse position.

Overrides: RadDragDropService.HandleMouseMove(Point)

Raises the event.

C#
protected override void OnPreviewDragOver(RadDragOverEventArgs e)
Parameters:eRadDragOverEventArgs

The RadDragOverEventArgs instance containing the event data.

Overrides: RadDragDropService.OnPreviewDragOver(RadDragOverEventArgs)

Raises the event.

C#
protected override void OnPreviewDropTarget(PreviewDropTargetEventArgs e)
Parameters:ePreviewDropTargetEventArgs

The PreviewDropTargetEventArgs instance containing the event data.

Overrides: RadDragDropService.OnPreviewDropTarget(PreviewDropTargetEventArgs)

Performs the stop.

C#
protected override void PerformStop()

Overrides: RadDragDropService.PerformStop()

Prepares the drag hint.

C#
protected virtual void PrepareDragHint(ISupportDrop dropTarget)
Parameters:dropTargetISupportDrop

The drop target.

Sets the drag drop behavior.

C#
protected virtual void SetDragDropBehavior()

Updates the drag hint location.

C#
protected virtual void UpdateDragHintLocation(Point mousePosition)
Parameters:mousePositionPoint

The mouse position.