Hi WStorey,
That I have more, I wanted to write datasource and write database.
You do not need a database you need a datasource and the most easy one is a
datatable.
I start changing your code it is late here so watch very good typos and
other errors.
\\\
Private Sub New_DataTable(ByVal NColumns As Integer, ByVal NRows As Integer)
Dim MyTable As DataTable = New DataTable
For i as integer = 0 to NColumns
dim dc as new datacolumn(chr(i))
MyTable.add(dc)
Next
For i as integer = 0 to NRows
dim dr as dr = MyTable.newrow
MyTable.add(dr)
Next
Dim MyDv as New DataView(MyTable)
MyDatagrid.datasource=dv
///
I never did this (with an empty dataset, filled I did), but this should
create in my opinion a complete empty datagrid with the columns and rows
that you did give. (I have not given the datatypes, this is only a quick
sample using your code)
I hope this helps, and if you have more questions tell them, but that I
answer not anymore today.
Cor