Pal,
You cannot use a datagrid without a datasource, however the datasource can
be a datatable, that does not mean a database, quickly written is this
already complete
\\\
dim dt as new datatable
datagrid1.datasource = dt
///
This is a complete empty datagrid.
Of course do you have to add columns and rows to the datatable, however that
is quiet easy
something as (as well quickly typed in this message so watch typos)
\\\
dim dt as new datatable
dt.columns.add("mydate",gettype(system.datetime))
for i as integer = 1 to 30 'gives an error in februari
dim dr as row = dt.rows.newrow
dr(0) = new date(now.year, now.month, i)
dt.rows.add(dr)
next
datagrid1.datasource = dt
///
This should give you a kind of calandar,
I hope this helps,
Cor
"Pal Eilertsen" <Pl*********@discussions.microsoft.com>
Hi,
Is there any controls in .Net that works like the MSH Flexgrid control. Is
it possible to use the DataGrid control without a datasource?
Best regards
Pal Eilertsen