I'm trying the following but am getting the error, GridColumn can not be created directly. Please use one of the specific column type, such as StaticColumn, ButtonColumn, etc. How do you set the column type?
Code: Visual Basic.NET
col = New EO.Web.GridColumn
With col
.DataField = "field1"
.DataType = EO.Web.GridColumnDataType.Auto
.Name = "field1"
.ReadOnly = True
.Width = 25
End With
grid.Columns.Add(col)