Dim DS As DataSet
Dim Table As DataTable
Dim R As System.Data.DataRow
Dim DV As DataView
Table = New DataTable("My Table")
Table.BeginLoadData()
With Table.Columns.Add("String Column", GetType(String))
.DefaultValue = ""
.ReadOnly = False ' Optional... had it to true
End With
With Table.Columns.Add("Integer Column", GetType(Integer))
.DefaultValue = 0
.ReadOnly = False
End With
Dim i As Integer
For i = 1 To 10
R = Table.NewRow
R(0) = "Bla bla bla"
R(1) = i
Table.Rows.Add(R)
Next
Table.EndLoadData()
DV = New DataView(Table)
DataGrid1.DataSource = DV
This works....