Welcome Guest Search | Active Topics | Sign In | Register

EO.Web.GridColumn + NEW() Options
jmancera
Posted: Thursday, May 29, 2008 9:32:33 PM
Rank: Newbie
Groups: Member

Joined: 5/29/2008
Posts: 3
hi,
i'm trying to build a GridColumncollection based on a .NET DataTable it does not compile because vs says:

"New cannot be used on a class that is declared mustinherit",

so i´m not able to run my code.
if i remove te new constructor i get an error saying Column is null, obviously because it does not have an instance declared....
how can i Fix this????

here is my code.


Dim DcArr As New EO.Web.GridColumnCollection

For i = 0 To dtVendedor.Rows.Count - 1
Dim Columna As New EO.Web.GridColumn
Columna.HeaderText = "2" 'dtVendedor.Rows(i).Item("Nombre")
Columna.DataType = GridColumnDataType.Auto
DcArr.Add(Columna)
Columna = Nothing
Next
jmancera
Posted: Thursday, May 29, 2008 9:43:10 PM
Rank: Newbie
Groups: Member

Joined: 5/29/2008
Posts: 3
here is the correct way.

Dim Columna As New EO.Web.TextBoxColumn


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.