Hello,
I'm experiencing quite a lot of unexpected behaviour when copying and pasting with SelectionMode = Extended.
I have the grid specified below. If I add some rows, then select row 1 and press Ctrl+C, then select row 5 and press Ctrl+V, then row 1 is correctly pasted into row 5. So single-row copying works fine.
However, if I add some rows, then select both rows 1 and 2 and press Ctrl+C, then select row 5 and press Ctrl+V, then rows 1 and 2 are pasted into rows 2 and 3 instead of rows 5 and 6. This happens regardless of which row I select (underneath row 2) before pressing Ctrl+V.
More strangeness:
- If I select rows 2 and 3, press Ctrl+C, then select row 4 and press Ctrl+V, then the two rows are pasted into rows 3 and 4 instead of rows 4 and 5. Furthermore, if I now select just row 6 and press Ctrl+C, and paste into Notepad, rows 2 and 6 are pasted in (whereas it should have copied just row 6).
- If I select rows 2,3,4, press Ctrl+C, then select row 7 and press Ctrl+V, then the three rows are pasted into rows 4,5,6 instead of row 7,8,9.
- If I select rows 2 and 5, press Ctrl+C, then select row 8 and press Ctrl+V, then the two rows are pasted into rows 5 and 6 instead of 8 and 9.
I've checked that this is not just a visual bug - the underlying data is affected in the same way.
Many thanks
Ed
P.S. Here's my grid:
I'm experiencing quite a lot of unexpected behaviour when copying and pasting with SelectionMode = Extended.
I have the grid specified below. If I add some rows, then select row 1 and press Ctrl+C, then select row 5 and press Ctrl+V, then row 1 is correctly pasted into row 5. So single-row copying works fine.
However, if I add some rows, then select both rows 1 and 2 and press Ctrl+C, then select row 5 and press Ctrl+V, then rows 1 and 2 are pasted into rows 2 and 3 instead of rows 5 and 6. This happens regardless of which row I select (underneath row 2) before pressing Ctrl+V.
More strangeness:
- If I select rows 2 and 3, press Ctrl+C, then select row 4 and press Ctrl+V, then the two rows are pasted into rows 3 and 4 instead of rows 4 and 5. Furthermore, if I now select just row 6 and press Ctrl+C, and paste into Notepad, rows 2 and 6 are pasted in (whereas it should have copied just row 6).
- If I select rows 2,3,4, press Ctrl+C, then select row 7 and press Ctrl+V, then the three rows are pasted into rows 4,5,6 instead of row 7,8,9.
- If I select rows 2 and 5, press Ctrl+C, then select row 8 and press Ctrl+V, then the two rows are pasted into rows 5 and 6 instead of 8 and 9.
I've checked that this is not just a visual bug - the underlying data is affected in the same way.
Many thanks
Ed
P.S. Here's my grid:
<
telerik:RadGridView
HorizontalAlignment
=
"Left"
Name
=
"gridView"
VerticalAlignment
=
"Top"
Width
=
"490"
HeaderRowStyle
=
"{StaticResource gridViewHeaderRowFixedHeightStyle}"
CanUserReorderColumns
=
"False"
CanUserFreezeColumns
=
"False"
CanUserResizeColumns
=
"True"
CanUserSelect
=
"True"
CanUserSortColumns
=
"False"
IsFilteringAllowed
=
"False"
ShowGroupPanel
=
"False"
AutoGenerateColumns
=
"False"
CanUserDeleteRows
=
"True"
CanUserInsertRows
=
"True"
SelectionMode
=
"Extended"
ShowInsertRow
=
"True"
RowIndicatorVisibility
=
"Visible"
RowHeight
=
"20"
>
<
telerik:RadGridView.Columns
>
...
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>