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-09-02 21:29:29

adamcrowe
Member
Registered: 2016-08-21
Posts: 21

Borders Loaded Incorrectly from RGF

I think there might be an issue with the grid when loading from RGF. The borders adjacent to read-only cells don't get restored properly as shows in these screenshots:

Parallels-Picture-1.png?fit=308%2C166

Parallels-Picture.png?fit=353%2C166

The cells in Column 24 are read-only while cells in columns 25-32 have an Outside border.

The RGF file contains the following for these cells:

    <v-border row="0" col="24" color="#c0c0c0" pos="all" rows="5" />
    <v-border row="0" col="25" pos="all" rows="2" />
    <v-border row="2" col="25" color="#c0c0c0" pos="all" rows="3" />
    <v-border row="1" col="26" color="#c0c0c0" pos="all" rows="4" />
    <v-border row="1" col="27" color="#c0c0c0" pos="all" rows="4" />
    <v-border row="1" col="28" color="#c0c0c0" pos="all" rows="4" />
    <v-border row="1" col="29" color="#c0c0c0" pos="all" rows="4" />
    <v-border row="1" col="30" color="#c0c0c0" pos="all" rows="4" />
    <v-border row="1" col="31" color="#c0c0c0" pos="all" rows="4" />
    <v-border row="1" col="32" color="#c0c0c0" pos="all" rows="4" />
    <v-border row="0" col="33" pos="all" rows="2" />

    <cell row="0" col="24" format="text" readonly="true" />
    <cell row="0" col="25" colspan="8" format="text">Digidesign 192 A Outputs<style bgcolor="#f2dcdb" bold="true" /></cell>

Any help would be most appreciated!!!

Adam

Offline

#2 2016-09-08 00:28:34

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

Re: Borders Loaded Incorrectly from RGF

I am wondering why your border at the position doesn't have a color?

Your RGF:

<v-border row="0" col="25" pos="all" rows="2" />

All borders else have color property.
How did you set the borders?

Offline

#3 2016-09-17 19:32:30

adamcrowe
Member
Registered: 2016-08-21
Posts: 21

Re: Borders Loaded Incorrectly from RGF

Please forgive my delayed reply. I've been diverted to another project for a moment.

I can confirm that I am indeed setting the color to Black. Have tried a few methods to do so but it still doesn't save the left border near a read-only cell. Here's an example of something I'm trying now:

Grid.DoAction(sheet, new SetRangeBorderAction(sheet.SelectionRange, BorderPositions.Left, new RangeBorderStyle { Style = BorderLineStyle.Solid, Color = Color.Black }));

Setting the third parameter to RangeBorderStyle.BlackSolid does the same thing.

Offline

#4 2016-09-18 18:41:25

adamcrowe
Member
Registered: 2016-08-21
Posts: 21

Re: Borders Loaded Incorrectly from RGF

Just a little update to say that this problem is true for any border that is adjacent to a read-only cell from any direction, not just on the left.

Thank you!

Offline

#5 2016-09-18 18:55:01

adamcrowe
Member
Registered: 2016-08-21
Posts: 21

Re: Borders Loaded Incorrectly from RGF

Furthermore, it seems that just the act of setting a cell to read-only, makes the Grid forget the border setting.

I have just tried setting all the read-only cells to false before saving and it didn't work; then I tried setting the read-only cells to false before changing the border, then back to true after the border was set, and the same is happening.

I hope it helps trace the bug.

Thank you!!!

Offline

Board footer

Powered by FluxBB