Welcome Guest Search | Active Topics | Sign In | Register

How do you add columns to a grid on the server side Options
Joan Darling
Posted: Tuesday, June 7, 2016 12:40:39 PM
Rank: Advanced Member
Groups: Member

Joined: 3/9/2010
Posts: 119
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)
Joan Darling
Posted: Tuesday, June 7, 2016 2:00:35 PM
Rank: Advanced Member
Groups: Member

Joined: 3/9/2010
Posts: 119
Please disregard I found the object, eo.web.staticcolumn etc.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.