0

I have a GridView with a lot of information and columns. The Header of each column is so long, so I want to write it in two or three lines instead of one line. How to do that?

Steve Wellens
  • 20,506
  • 2
  • 28
  • 69
Mohammed Al-Ali
  • 75
  • 2
  • 10

1 Answers1

0

Here's one way:

<asp:BoundField DataField="Description" 
                HeaderText="Description <br /> more stuff" 
                SortExpression="Description" 
                HtmlEncode="False" />
Steve Wellens
  • 20,506
  • 2
  • 28
  • 69