Professional Web Applications Themes

populating a datagrid from an array - ASP.NET Data Grid Control

Here is the situation: I have a datagrid that is being populated from a database, with anywhere from 1 to 3 columns showing depending on how many serving sizes are selected. The grid is fixed in column widths. An array is created to store some information--no problem with this one. The problem: I want to create another datagrid to be placed directly on top of this one and formatted the same column widths as the first datagrid. I want to populate the datagrid with some information from the array that is associated with the data from the first datagrid. Can ...

  1. #1

    Default populating a datagrid from an array

    Here is the situation:
    I have a datagrid that is being populated from a database, with
    anywhere from 1 to 3 columns showing depending on how many serving
    sizes are selected. The grid is fixed in column widths. An array is
    created to store some information--no problem with this one.

    The problem: I want to create another datagrid to be placed directly on
    top of this one and formatted the same column widths as the first
    datagrid. I want to populate the datagrid with some information from
    the array that is associated with the data from the first datagrid. Can
    it be done and how? Thanks.

    patliz1@juno.com Guest

  2. #2

    Default Re: populating a datagrid from an array

    It isn't really clear to me what you need to do, but it sounds like a
    hierarchical scenario. If so, you might want to investigate this method of
    creating grids within grids:

    [url]http://www.denisbauer.com/ASPNETControls/HierarGrid.aspx[/url]

    If I missed the point, perhaps you can explain more fully?

    <patliz1juno.com> wrote in message
    news:1109781267.830935.210480z14g2000cwz.googlegr oups.com...
    > Here is the situation:
    > I have a datagrid that is being populated from a database, with
    > anywhere from 1 to 3 columns showing depending on how many serving
    > sizes are selected. The grid is fixed in column widths. An array is
    > created to store some information--no problem with this one.
    >
    > The problem: I want to create another datagrid to be placed directly on
    > top of this one and formatted the same column widths as the first
    > datagrid. I want to populate the datagrid with some information from
    > the array that is associated with the data from the first datagrid. Can
    > it be done and how? Thanks.
    >
    Ken Cox [Microsoft MVP] Guest

Similar Threads

  1. Populating datagrid from combobox
    By phoenixBlack69 in forum Macromedia Flash Data Integration
    Replies: 2
    Last Post: July 7th, 05:10 PM
  2. Populating a datagrid with dataObject
    By FlashOverX in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: October 20th, 04:16 PM
  3. populating a datagrid
    By viktor9990 in forum ASP.NET Data Grid Control
    Replies: 5
    Last Post: March 30th, 03:51 PM
  4. Populating an array with a list of values
    By samb1 in forum Macromedia ColdFusion
    Replies: 3
    Last Post: February 21st, 02:45 PM
  5. populating an array with a conditional
    By hoz in forum Macromedia Flash Actionscript
    Replies: 1
    Last Post: March 4th, 07:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139