By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,694 Members | 1,304 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,694 IT Pros & Developers. It's quick & easy.

.Net control that works like the MSHFlexgrid control?

P: n/a
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

Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

Nov 21 '05 #2

P: n/a
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
-------------------------------
"Pl Eilertsen" <Pl*********@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.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
Pl Eilertsen
Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.