This is a migrated thread and some comments may be shown as answers.

Getting Cell Formatting

2 Answers 19 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Neil N
Top achievements
Rank 1
Veteran
Iron
Neil N asked on 11 Apr 2013, 01:55 PM
Is it possible in code-behind to get formatting info (e.g., font name, font size, font colour, bold, justification, cell colour) of a specific cell?

2 Answers, 1 is accepted

Sort by
0
MasterChiefMasterChef
Top achievements
Rank 2
answered on 11 Apr 2013, 08:29 PM
Hi Neil N,

If you assign a certain css class to the specific cell you are interested in, you will be able to assign and edit this css style in the code behind. Here is a link that should help you get started:
http://stackoverflow.com/questions/4376534/how-to-get-css-styles-in-code-behind-asp-net

Hopefully this helps,
Master Chief
0
Neil N
Top achievements
Rank 1
Veteran
Iron
answered on 11 Apr 2013, 08:38 PM
Not as simple as I hoping but thanks.  I'm actually working on Export to Excel code.  Got the export looking pretty good and was hoping to transfer some of the styles over.  However, I think I'll stick with putting in some default formatting in Excel. Thanks again.
Tags
PivotGrid
Asked by
Neil N
Top achievements
Rank 1
Veteran
Iron
Answers by
MasterChiefMasterChef
Top achievements
Rank 2
Neil N
Top achievements
Rank 1
Veteran
Iron
Share this question
or