DataGrid Header and Text Alignment

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there anyway to align HeaderText different from text in the column. I want my text to be right aligned and headertext to be center. I don't want to add blank spaces in HeaderText as I am using a function which autoresizes the column.

thanks
 
Hi,

DataGrid has HeaderStyle property. Couldn't you do the alignment with it?

--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke


PankajBanga said:
Is there anyway to align HeaderText different from text in the column. I
want my text to be right aligned and headertext to be center. I don't want
to add blank spaces in HeaderText as I am using a function which autoresizes
the column.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top