How to disable inserting row lines when drop into RadGridView

1 Answer 46 Views
GridView
Vicent
Top achievements
Rank 1
Iron
Vicent asked on 11 Oct 2024, 07:53 AM

We had a project using two RadGridViews in Winforms, one of the features was dragging some info from one of the rows of one grid to other row of the grid.

With olders versions of Telerik controls, when dragging no insert lines appear, but we have updated to current version and now, when dragging one row from one grid to the other one inserting lines appear over or below the row

This is great for most cases but not for this one,

 

Is there any way to prevent this lines?

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 11 Oct 2024, 02:50 PM

Hello, Vicent,

TableElement has a RowDragHint property sets the hint that indicates where a row will be dropped after a drag operation. If you need to disable these hint lines when dropping just set RowDragHint in the following way:

grid.TableElement.RowDragHint = null;

I hope this helps. If you have any other questions do not hesitate to contact me. 

Regards,
Nadya | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Vicent
Top achievements
Rank 1
Iron
commented on 14 Oct 2024, 07:59 AM

Thank you, it is just what I needed
Tags
GridView
Asked by
Vicent
Top achievements
Rank 1
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or