Link to home
Start Free TrialLog in
Avatar of d_potts
d_potts

asked on

DataGrid Column Right Align Caption Text Getting Cut Off

I have a datagrid that I want to align the values to the right.  The number in the grid look correct however in the caption the T in Amount is getting cut off.  I have tried adding spaces before and after the caption text but nothing seems to work.  Any help would be greatly appreciated.
Avatar of d_potts
d_potts

ASKER

Side Note.  I have the onPaint in the Datagrid overwritten.  Could this have something do with it.
Avatar of d_potts

ASKER

Sorry I ment in the DatagridColumnsSysle for the textbox column
Assuming that the caption you refer to is the column header - DataColumn.ColumnName - I've not seen this before.  

1) What is in the overriding of the DataGrid.OnPaint?

And what happens if

2) you increase the width of the column?

or

3) change the font to non-proportional - e.g Courier New?

Roger
SOLUTION
Avatar of amyhxu
amyhxu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of d_potts

ASKER

Thanks Guys.   I never though to use a '.'  I tried spaces and they never worked.  It's things like this in .NEt that drive me nuts.