ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.

https://github.com/unvell/ReoGrid/issues

#1 2016-02-09 13:42:16

amvandenberg
Member
Registered: 2016-02-09
Posts: 10

Paste does not repeat rows if selection is larger

How to repeat:
1. Open the control
2. Type some text in cell A1
3. Copy the cell
4. Select range B1:B4
5. Ctrl+V to paste.
Expected: all cells in range B1:B4 are filled with the same text.
Current result: only B1 contains the value.

The culprit is in the following method:
public ReoGridRange SetPartialGridRepeatly(PartialGrid grid, ReoGridRange range)

The c variable is initialized outside both row and column for-loops, while it should be set inside the row for-loop.
Right now, after 1 column repeat, the inner (column) for-loop will never enter again, because c == range.Col2.

I'm looking at version 0.8.5.0 source code, but the problem exists in version 1.0 as well. I imagine the source code is the same.

Offline

#2 2016-02-10 06:01:14

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: Paste does not repeat rows if selection is larger

Hi, original code of SetPartialGridRepeatly sets the data repeatedly but looks like current version doesn't work properly, I'll check and try to fix this as soon as possible. Thanks for reporting.

You're right the code about this since 0.8.5.0 hasn't been changed.

Offline

#3 2016-02-17 07:06:25

Jingwood
Moderator
From: jing at reogrid.net
Registered: 2014-06-03
Posts: 615

Re: Paste does not repeat rows if selection is larger

This problem has been fixed in 1.1 version and available for download at https://reogrid.net/download/, thanks for reporting.

Offline

#4 2016-02-23 08:14:42

amvandenberg
Member
Registered: 2016-02-09
Posts: 10

Re: Paste does not repeat rows if selection is larger

Awesome, thanks for fixing!

Offline

Board footer

Powered by FluxBB