Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JustifyText in a DataGrid

Status
Not open for further replies.

jpreciado

MIS
Feb 7, 2004
36
MX
I´m trying to Right-Align a Text of a specific column in a DataGrid using c#.

Thanks in Advanced
 
You can add a CSS style containing text-align:right to the datagrid column either when designing your web form or within the ItemDataBound event of the datagrid.

Tom
emo_big_smile.gif
 
Just go into the properties of the grid..then under columns you can format what cell you want.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top