Re: Datagrid source= datarow array
From: Cor Ligthert (notfirstname_at_planet.nl)
Date: 09/13/04
- Next message: Hermit Dave: "Re: Custom marshalling"
- Previous message: clintonG: "Re: Microsoft: Get rid of VB.NET -- now !"
- In reply to: rodchar: "Re: Datagrid source= datarow array"
- Next in thread: rodchar: "Re: Datagrid source= datarow array"
- Reply: rodchar: "Re: Datagrid source= datarow array"
- Messages sorted by: [ date ] [ thread ]
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
> >
> >
> >
- Next message: Hermit Dave: "Re: Custom marshalling"
- Previous message: clintonG: "Re: Microsoft: Get rid of VB.NET -- now !"
- In reply to: rodchar: "Re: Datagrid source= datarow array"
- Next in thread: rodchar: "Re: Datagrid source= datarow array"
- Reply: rodchar: "Re: Datagrid source= datarow array"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|