I have bound a datatable to the grid and I have added tablesummaryrow and a summaryColumn which displays the total, that is working well, took all of 10 minutes but
I've spent two hours trying to figure out horizontalalignment!
I want to right align the total in the summarycolumn.
I cannot see how this is done, I must be missing something blindingly obvious because I'm sure this is something everyone would do and I just cannot see how to do it!
|
this.sfDataGrid1.Style.TableSummaryRowStyle.HorizontalAlignment = HorizontalAlignment.Right; |
Hi,
That seems to align the value in the summary row.
I want to align the total values under the columns.
Regards,
Russ
HI there,
thanks for your support on this, but...
if you look at that sample program you linked, you will see that the summary count value of 20 IS NOT right aligned in the column. I have annotated in red the issue.
|
this.sfDataGrid1.Style.TableSummaryRowStyle.TextMargins = new Padding(0); |