DataGrid Column Alignment
-
I created a DataGrid and DataTable in code. I set the DataSource of the DataGrid to be the DataTable. How do I set the alignment of the displayed cell data? I messed around with the DataGridColumnStyle.Alignment Property but that seemss to only adjust the alignment of the column header. I need to right align the entire column of numbers.
-
I created a DataGrid and DataTable in code. I set the DataSource of the DataGrid to be the DataTable. How do I set the alignment of the displayed cell data? I messed around with the DataGridColumnStyle.Alignment Property but that seemss to only adjust the alignment of the column header. I need to right align the entire column of numbers.
I use DataGridColumnStyle.Alignment and it works. May be You have extra spaces on right in Your numbers? Hi, AW