Data in Table

  • Thread starter Thread starter Babich
  • Start date Start date
B

Babich

Hi!
I have some data that i need to show in a table, but i don't know how. I saw
DataGrid, but that is for database, or it can be filled manual?
 
Hi Babich,

You can use the Datagrid, it is a misunderstanding often that you cannot use
it when there is no database.

You only have to create your own datatable which is very easy roughly typed
not checked..
dim dt as new datatable
dim dc as new datacolumn
dt.add(dc)
dim dr as datarow = new datatable.newrow
dt.add(dr)
Now you have a one row one column datatable.
datatable(0).rows(0).item(0)

this you can use as datasource for your datagrid.

I hope this helps?

Cor
 
Yes, that is what i need. Txh

Cor said:
Hi Babich,

You can use the Datagrid, it is a misunderstanding often that you cannot use
it when there is no database.

You only have to create your own datatable which is very easy roughly typed
not checked..
dim dt as new datatable
dim dc as new datacolumn
dt.add(dc)
dim dr as datarow = new datatable.newrow
dt.add(dr)
Now you have a one row one column datatable.
datatable(0).rows(0).item(0)

this you can use as datasource for your datagrid.

I hope this helps?

Cor
 
Back
Top