Monday, January 23, 2012

How to align Header and Column in MvcContrib

.Columns(column =>
{
           

column.For(clmn => clmn.Id).Named("ID").HeaderAttributes(style => "text-align:center;");
column.For(a => Html.ActionLink("Edit", "Edit", new { id = a.RequestId })).Named("Edit").HeaderAttributes(style => "text-align:center;").Attributes(style => "text-align:center;");

})

No comments:

Post a Comment