Home All Groups Group Topic Archive Search About
Author
4 Aug 2006 1:39 PM
martin1
Hi, All,

I has 2 gridview data like below and try to put data together into
gridviewTotal or attach gridview2 to gridview1, these 2 gridview data
structure same , just attach one column called Average2 to girdveiew1. Anyone
can help out?  Thanks a lot in advance!

1) GridView1 data

Parameter   Average1  

Para1                3
Para2                4
Para3                5

2) GridView2 data

Parameter   Average2  

Para1                7
Para2                8
Para3                11

3) GridViewTotal

Parameter     Average1      Average2

Para1                3        7
Para2                4        8
Para3                5        11

Author
4 Aug 2006 5:48 PM
Al
What are DataSources for gridview1 and gridview2?
Maybe you could combine values from those datasources, put it in the third
datasource and use the third datasorce with datagrid3 ?

Al

Show quoteHide quote
"martin1" <mart***@discussions.microsoft.com> wrote in message
news:402D4761-CB01-4999-A383-C58BEC734540@microsoft.com...
> Hi, All,
>
> I has 2 gridview data like below and try to put data together into
> gridviewTotal or attach gridview2 to gridview1, these 2 gridview data
> structure same , just attach one column called Average2 to girdveiew1.
> Anyone
> can help out?  Thanks a lot in advance!
>
> 1) GridView1 data
>
> Parameter   Average1
>
> Para1                3
> Para2                4
> Para3                5
>
> 2) GridView2 data
>
> Parameter   Average2
>
> Para1                7
> Para2                8
> Para3                11
>
> 3) GridViewTotal
>
> Parameter     Average1      Average2
>
> Para1                3 7
> Para2                4 8
> Para3                5 11
>
Author
4 Aug 2006 6:16 PM
martin1
Thank you! Al

gridview1 and gridview2 datasource is different, but come from one table
like below, when query just select various ID, gridview1's ID is Unit1,
gridview2's ID is Unit2, so how to display Unit1 and Unit2 data on 2
different columns called Average1 and average2 for one GridView?

-------------------------------------
ID     Parameter   Average

Unit1    Para1                3
Unit1    Para2                4
Unit1     Para3                5
Unit2    Para1                7
Unit2    Para2                8
Unit2    Para3                11



Show quoteHide quote
"Al" wrote:

> What are DataSources for gridview1 and gridview2?
> Maybe you could combine values from those datasources, put it in the third
> datasource and use the third datasorce with datagrid3 ?
>
> Al
>
> "martin1" <mart***@discussions.microsoft.com> wrote in message
> news:402D4761-CB01-4999-A383-C58BEC734540@microsoft.com...
> > Hi, All,
> >
> > I has 2 gridview data like below and try to put data together into
> > gridviewTotal or attach gridview2 to gridview1, these 2 gridview data
> > structure same , just attach one column called Average2 to girdveiew1.
> > Anyone
> > can help out?  Thanks a lot in advance!
> >
> > 1) GridView1 data
> >
> > Parameter   Average1
> >
> > Para1                3
> > Para2                4
> > Para3                5
> >
> > 2) GridView2 data
> >
> > Parameter   Average2
> >
> > Para1                7
> > Para2                8
> > Para3                11
> >
> > 3) GridViewTotal
> >
> > Parameter     Average1      Average2
> >
> > Para1                3 7
> > Para2                4 8
> > Para3                5 11
> >
>
>
>