Column Alignment

Jun 26, 2013 at 9:51 PM
Is there any idea to implement a feature "column alignment"?

I'm a volunteer to create/planning this feature.

My email: rs.ferraz@gmail.com__ __skype:
Jun 27, 2013 at 10:42 AM

I think it can be easily be done by adding custom css rules, like
.grid-table .grid-header:nth-child(<N>),  .grid-table .grid-cell:nth-child(<N>) {
    text-align: center; /* right | left */
where <N> - order number of column
Jul 12, 2013 at 7:17 PM
Edited Jul 12, 2013 at 7:18 PM
Hi Bukharin, I try this way to align the column but how should I do if there are several grids ? I saw the HTML code generated for the grid and I see a style="" TAG for the TD elements, Is there a chance one can do something like this:
// a segment of my view
grid.Columns.Add(e => e.CustomerId).Titled("Id").Css("myclass1");
thanks for your work in adv.
Jul 13, 2013 at 2:48 AM
Hi junio76,

You can place several grid in a different wraps and use different css selectors like:
#grid1 .grid-table .grid-header:nth-child(<N>) { .. }
Your view is great, but you apply css rules for header and cells. Any idea how to split them? Css more flexibale in this case.