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

Export Format Issues - Possible Bug

1 Answer 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Karl
Top achievements
Rank 1
Karl asked on 07 Jul 2008, 05:28 PM
I am working on exporting a grid in a hierarchical mode to excel. I have 3 levels.

My issue is when I export I can't seem to get the columns to align to the left. When I export the columns appear to be centered. To fix this I thought adding HorizonalAlign="Left" to the table declarations would fix this. It did work to a degree. The 2 level still center aligns the items and when the web page is displayed (using Office 2007 skin) it breaks the CSS styling on the Headers of the DetailTables.

As I was typing my post I had an idea to try putting the <ItemStyle HorizontalAlign="Left" /> directly into the GridBoundColumn. This worked to left align my items.

Is there a difference between putting this <ItemStyle HorizontalAlign="Left" /> as a global declaration or as a per column declaration?  I thought they would be the same. I suspect there may be a bug if not.

I am using release Q3 2007.

1 Answer, 1 is accepted

Sort by
0
Karl
Top achievements
Rank 1
answered on 07 Jul 2008, 08:55 PM
Well I did manage to fix my problem though in order to left align everything without breaking the CSS I must do it in the code behind during the ItemDataBound event.

For some reason this does not break CSS.
Tags
Grid
Asked by
Karl
Top achievements
Rank 1
Answers by
Karl
Top achievements
Rank 1
Share this question
or