1 Replies - 153 Views - Last Post: 29 May 2019 - 06:15 AM Rate Topic: -----

#1 RushabhVerma   User is offline

  • New D.I.C Head

Reputation: -2
  • View blog
  • Posts: 13
  • Joined: 23-April 19

How to give border to Multiple cell and Column at once?

Posted 28 May 2019 - 10:14 PM

While exporting data into excel I have a data with merge Cell Like:- https://www.screenca.../t/XKglDLIi4ND6 how can I put the border all around multilple cell Like https://www.screenca...m/t/lkrIeKhF8Vg For bordering in one cell in cell format My border class is :-
Borders borders = new Borders(
                    new Border(), // index 0 default
                    new Border( // index 1 black border
                        new LeftBorder(new Color() { Auto = true }) { Style = BorderStyleValues.Thin },
                        new RightBorder(new Color() { Auto = true }) { Style = BorderStyleValues.Thin },
                        new TopBorder(new Color() { Auto = true }) { Style = BorderStyleValues.Thin },
                        new BottomBorder(new Color() { Auto = true }) { Style = BorderStyleValues.Thin },
                        new DiagonalBorder())
                );


This post has been edited by Skydiver: 29 May 2019 - 06:12 AM
Reason for edit:: Put code in code tags. Learn to do this yourself.


Is This A Good Question/Topic? 0
  • +

Replies To: How to give border to Multiple cell and Column at once?

#2 Skydiver   User is offline

  • Code herder
  • member icon

Reputation: 6968
  • View blog
  • Posts: 23,684
  • Joined: 05-May 12

Re: How to give border to Multiple cell and Column at once?

Posted 29 May 2019 - 06:15 AM

As seems to be RushabhVerma's habit, also cross-posted in SO.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1