GridView

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • martin1

    #1

    GridView

    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

  • Al

    #2
    Re: GridView

    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" <martin1@discus sions.microsoft .comwrote in message
    news:402D4761-CB01-4999-A383-C58BEC734540@mi crosoft.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
    >

    Comment

    • martin1

      #3
      Re: GridView

      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



      "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" <martin1@discus sions.microsoft .comwrote in message
      news:402D4761-CB01-4999-A383-C58BEC734540@mi crosoft.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
      >
      >
      >

      Comment

      Working...