Hello Michail,
Thank you for writing.
In order to hide the horizontal line illustrating the drop position, you can set the RadGridView.TableElement.
RowDragHint property to
Nothing.
As to the second question, you can customize the target row by using the following approach. Handle the PreviewDragOver event of the RadGridViewDragDropService and change the row's color:
Dim
targetRowElement
As
GridDataRowElement
Private
Sub
Svc_PreviewDragOver(sender
As
Object
,
e
As
RadDragOverEventArgs) _
Handles
_svc.PreviewDragOver
If
TypeOf
e.DragInstance
Is
GridDataRowElement
Then
e.CanDrop =
TypeOf
e.HitTarget
Is
GridDataRowElement
OrElse
TypeOf
e.HitTarget
Is
GridTableElement
OrElse
TypeOf
e.HitTarget
Is
GridSummaryRowElement
If
targetRowElement IsNot
Nothing
Then
targetRowElement.ResetValue(LightVisualElement.BackColorProperty, ValueResetFlags.Local)
targetRowElement.ResetValue(LightVisualElement.DrawFillProperty, ValueResetFlags.Local)
targetRowElement.ResetValue(LightVisualElement.GradientStyleProperty , ValueResetFlags.Local)
End
If
targetRowElement = TryCast(e.HitTarget, GridDataRowElement)
If
targetRowElement IsNot
Nothing
Then
targetRowElement.DrawFill =
True
targetRowElement.GradientStyle = GradientStyles.Solid
targetRowElement.BackColor = Color.Red
End
If
End
If
End
Sub
I hope this information helps. Should you have further questions I would be glad to help.
Regards,
Dess
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the
Telerik Feedback Portal and vote to affect the priority of the items