Re: .Net control that works like the MSHFlexgrid control?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Cor Ligthert (notmyfirstname_at_planet.nl)
Date: 10/04/04


Date: Mon, 4 Oct 2004 11:20:58 +0200

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" <PlEilertsen@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
>



Relevant Pages

  • Re: populating Crystal Reports from DataGrid data
    ... Are you trying to populate the datagrid and the CR on the same page request? ... How to put objects into the Session ... If that's the case would I go into the CR Datasource wizard and spell- ... Dim emps As Employees ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: populating Crystal Reports from DataGrid data
    ... If that's the case would I go into the CR Datasource wizard and spell- ... Bind the model to the DataGrid you have on the page already. ... Dim emps As Employees ... Dim Employee As Employee ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Adding dummy item to DropDownList in a DataGrid
    ... creates a new DdropDownList control called list, it is not in a DataGrid, ... Which will place the ddl inside some other control. ... Dim ddl as DropDownList = e.Item.Cells.FindControl ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Newbie Question!
    ... dim r as new TableRow ... when the DataReader was reading the employment history. ... is the repeater control the best method? ... I don't think a datagrid will work here because the date won't be ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Newbie Question!
    ... dim r as new TableRow ... when the DataReader was reading the employment history. ... is the repeater control the best method? ... I don't think a datagrid will work here because the date won't be ...
    (microsoft.public.dotnet.framework.aspnet)