ReoGrid Forum

Fast and powerful .NET Spreadsheet Component

You are not logged in.

Announcement

This forum no longer accepts new user registrations, please report your question, problem and feedback to the issue page of ReoGrid on Github. Thanks for your cooperation.

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

#1 2016-01-27 07:25:26

zhaochunyu0104
Member
Registered: 2015-08-13
Posts: 7

合并单元格后,拖动滚动条,内容消失

1.jpg
拖动滚动条
2.jpg

我的代码是这样写的
            worksheet.MergeRange("A1:S1");
            worksheet["A1"] = "增值税纳税申报表附列资料(一)";
            worksheet.SetRangeStyles("A1:S1", new WorksheetRangeStyle
            {
                Flag = PlainStyleFlag.FontSize | PlainStyleFlag.FontStyleBold | PlainStyleFlag.HorizontalAlign,
                FontSize = 14,
                Bold = true,
                HAlign = ReoGridHorAlign.Center,
            });

            worksheet.MergeRange("A2:S2");
            worksheet["A2"] = "(本期销售情况明细)";
            worksheet.SetRangeStyles("A2:S2", new WorksheetRangeStyle
            {
                Flag = PlainStyleFlag.FontStyleBold | PlainStyleFlag.HorizontalAlign,
                Bold = true,
                HAlign = ReoGridHorAlign.Center,
            });

            worksheet.MergeRange("A3:S3");
            worksheet["A3"] = "税款所属时间:2015年12月01日 至 2015年12月31日";
            worksheet.SetRangeStyles("A3:S3", new WorksheetRangeStyle
            {
                Flag = PlainStyleFlag.HorizontalAlign,
                HAlign = ReoGridHorAlign.Center,
            });

拖动滚动条时,中间两个单元格内容就消失了,很奇怪

Offline

#2 2016-01-28 10:12:59

oops
Moderator
Registered: 2015-11-03
Posts: 54

Re: 合并单元格后,拖动滚动条,内容消失

如果合并单元格的尺寸大于控件的尺寸,可能出现这样的问题,这是ReoGrid当前的一个bug,正在解决中。

Offline

#3 2016-01-29 06:41:09

zhaochunyu0104
Member
Registered: 2015-08-13
Posts: 7

Re: 合并单元格后,拖动滚动条,内容消失

oops wrote:

如果合并单元格的尺寸大于控件的尺寸,可能出现这样的问题,这是ReoGrid当前的一个bug,正在解决中。



谢谢,期待

Offline

#4 2016-02-17 08:10:50

oops
Moderator
Registered: 2015-11-03
Posts: 54

Re: 合并单元格后,拖动滚动条,内容消失

这个问题已经在1.1版本中修复。请从这里下载: https://reogrid.net/cn/download

Offline

Board footer

Powered by FluxBB