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
|
Rank: Newbie Groups: Member
Joined: 5/29/2008 Posts: 3
|
here is the correct way.
Dim Columna As New EO.Web.TextBoxColumn
|