ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How set align of text in column of Grid to center
Title:
B
I
{code}
?
I try set css to Column Object of @(Html.Awe().Grid but it does not work in view page new Column {.... , CssClass = "txtCenter" }, in my css .txtCenter { text-align: center; }
Save Changes
Cancel
nutfergie
asked at 31 Jan 2017
the code you posted should work for the grid content, for the headers you need to set `HeaderCssClass`, you can also look at our [https://demo.aspnetawesome.com/GridDemo/CustomFormat custom format demo] if you want all your headers to have text in the center you could do this: `.awe-col { text-align: center; }`
at 01 Feb 2017
Omu
thx for answer...
at 01 Feb 2017
nutfergie
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK