Yes the columns are autogenerated and there are over 100 of columns.
Out of those 100 columns lets say I want to format 2 columns which are of type DATETIME
As per your comment, I tried defining only a single column explicitly as below:
@(Html.Infragistics().Grid<Data>(Model.DataCollection).ID("mGrid")
.AutoGenerateColumns(true)
.Columns(col =>
{
col.For(x => x.CreateDate).HeaderText("CreateDate").DataType("date").Format("MM-dd-yyyy h:mm:ss tt");
}
)
.Height("600px")
.DataBind()
.Render()
)
The above code only renders the explicitly defined column and does not render the remaining ones although AUTOGENERATECOLUMNSis set to TRUE.