This Syntax from the old UltraWebGrid:
UltraWebGrid1.Columns.FromKey("Betrag").CellStyle.HorizontalAlign=HorizontalAlign.Right
How is the systax in the WebDataGrid?Thanks.
So the entire formatting of the grid is CSS? I was eval'ing the controld. That fixed it for me. We won't be buying this grid.
I love CSS, but I don't want to have to go change it for something as simple as right aligning a column or a cell.
Thanks. This work fine.Great.
You need two styles.
.rechts{
text-align: right;
}
tbody > tr > td.RAlign
{
You assign Rects to the header css and RAlign to the column css that goes to the cells.
-Dave
Not possible a column is to be positioned right.
My new Inline CSS in Page1.ASPX:<style type="text/css">
.rechts {tbody > tr > td.RAlign}</style>
It does not function.Please, post a Link, if there is already a solution. Thanks!
Hi BBL_MV,
There are actually a bunch of previous forum posts about this. The problem is that for the cells the css you have is ignored unless you provide css selectors similar to what is in the default styles. Try
But only use that for the cells. The one you have should work fine for the header.