Re: Datagrid source= datarow array

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Cor Ligthert (notfirstname_at_planet.nl)
Date: 09/13/04


Date: Mon, 13 Sep 2004 17:08:25 +0200

Rodchar,

Just clone the original table and add the datarows to that by looping
through it, you can use for that the datarow.itemarray

I hope this gives an idea?

Cor

"rodchar" <rodchar@discussions.microsoft.com>

> What I'm using is the GetChildRows method which returns an array of
datarows.
> How do I get those rows into an empty table and then bind to my datagrid?
>
>
> "Cor Ligthert" wrote:
>
> > Rodchar,
> >
> > An array of datarows seems difficult to me to bind that to the
columnstyles.
> >
> > Normally is used the normal container for datarows "the datatable" with
as
> > view the dataview which are make it so simple to select the proper
columns
> > or rows.
> >
> > I think you take the hard way, I am as well curious if somebody did that
as
> > well.
> > It is such a nice build in feature ADONET.
> >
> > Cor
> >
> > > I have an array of data rows that when I bind it to a datagrid it
shows
> > all
> > > those extra rows in addition to my fields. How do I hide those fields?
> > >
> > > I tried using the TableStyles property but seems like it's getting
> > overridden.
> > >
> > > Any ideas?
> > >
> > > Thanks in advance,
> > > rodchar
> >
> >
> >



Relevant Pages

  • Re: Datagrid source= datarow array
    ... What I'm using is the GetChildRows method which returns an array of datarows. ... How do I get those rows into an empty table and then bind to my datagrid? ... > view the dataview which are make it so simple to select the proper columns ...
    (microsoft.public.dotnet.general)
  • Re: Selecting records from DataTable?
    ... datatable.select 'this is not an SQL query ... That returns a collection of datarows ... the datatable.defaultview you can bind than directly to a datasource. ... Prev by Date: ...
    (microsoft.public.dotnet.general)
  • RE: Adding check list box inside master detail web grid
    ... array of datarows. ... I read that we can't bind a ... datarowto a datagrid. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Datagrid source= datarow array
    ... An array of datarows seems difficult to me to bind that to the columnstyles. ... Normally is used the normal container for datarows "the datatable" with as ... > those extra rows in addition to my fields. ...
    (microsoft.public.dotnet.general)
  • Re: Data loaded into DataSet
    ... Cor, ... very first dataset programs I've ever dealt with.) ... > The datarows are loaded in memory, where that is depends on your memory ...
    (microsoft.public.dotnet.languages.csharp)