Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetRowStyle is not replacing the previous style of a cell #1163

Closed
kukaki opened this issue Mar 1, 2022 · 1 comment
Closed

SetRowStyle is not replacing the previous style of a cell #1163

kukaki opened this issue Mar 1, 2022 · 1 comment

Comments

@kukaki
Copy link

kukaki commented Mar 1, 2022

SetRowStyle is not replacing the style of a cell (part of the row) which was previously set using SetColStyle .

For eg. Let's say I have set style to column B using SetColStyle. Now if I set style to row 1 using SetRowStyle, the row style is applied to entire row 1 except cell B1 (col style prevailing here).

i.e. SetRowStyle is setting style to only the cells which do not have a previous style.

Steps to reproduce the issue:

  1. Set style to column B using SetColStyle
  2. Set style to row 1 using SetRowStyle

Describe the results you received:
The row style is applied to entire row 1 except cell B1 (col style prevailing here).

Describe the results you expected:
As row style is the latest one, it should be applied to entire row 1.
And col style should be applied to entire Column B (except B1 cell).

Output of go version:

go1.18beta2

Excelize version or commit ID:

github.com/xuri/excelize/v2 v2.5.1-0.20220222002218-8a6815fcccc1

Environment details (OS, Microsoft Excel™ version, physical, etc.):
Windows 11
Microsoft Office 2007

@xuri xuri closed this as completed in 19a0cf3 May 15, 2022
@xuri
Copy link
Member

xuri commented May 15, 2022

Thanks for your issue. I have fix it, please upgrade to the master branch code, and this patch will be release in the next version.

xuri added a commit to carbin-gun/excelize that referenced this issue Oct 9, 2022
xuri added a commit to JDavidVR/excelize that referenced this issue Jul 11, 2023
jenbonzhang pushed a commit to jenbonzhang/excelize that referenced this issue Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants