I am populating a grid with dynamic data. I would like to center all but the left column horizontally. The left column should be left-aligned. I've looked at some examples and have not been able to get it to work. My code follows the pattern below. Where/how can I center align all columns that are not the one with the name "LeftMostColumn?" I've mocked up a couple of places where I think this might happen. Please advise. Thanks!
@(Html.Kendo().Grid<dynamic>() .Name("Grid") .Columns(columns => { foreach (System.Data.DataColumn column in Model.MyDataData.Columns) { var c = columns.Bound(column.ColumnName); if (column.ColumnName != "LeftMostColumn") { // center the contents of the column } } }) .DataSource(dataSource => dataSource .Ajax() .Model(model => { foreach (System.Data.DataColumn column in Model.MyDataData.Columns) { var field = model.Field(column.ColumnName, column.DataType); if (column.ColumnName != "LeftMostColumn") { // center the contents of the field? } } }).Read(read => read.Url(Url.Page("./MyData", new { handler = "GetData_Read" })).Data("forgeryToken")) ))