.Net control that works like the MSHFlexgrid control?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
PÃ¥l Eilertsen
 
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
 
Hi,

The component one flexgrid is similar to the msh flexgrid. There is
a free version in the vb.net resource kit.

http://msdn.microsoft.com/vbasic/vbrkit/default.aspx

Ken
-------------------------------
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
Pål Eilertsen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top