merging multiple datasets to bind to a grid

Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default merging multiple datasets to bind to a grid

    How can I merge 2 datasets into one, then bind with the datagrid, or bind
    the datagrid to 2 datasets? For instance, I have one stored procedure that
    finds company name, address, etc., and another stored procedure that finds
    employees of that company and the employee information.

    Thanks.


    Rock Guest

  2. Similar Questions and Discussions

    1. Bind grid & textbox
      I am pulling a query into a cfgrid and if the value pulled in is NULL, when I select that row, and try to edit it using my textbox, it doesn't...
    2. bind two datasets together
      Hey guys, Basically what I need to do is to bind two datasets together so they each have a copy of the same data. Then I'll put a filter on one...
    3. How to bind to a drop down list in a grid.
      I want to display some drop down lists in a grid. Let's say user Joe is from Region 1, and I want to get a list of users and bind to the grid, but...
    4. How to bind multiple datasources to one grid?
      How can I bind my grid to more than one datasource - that is the question. Right now I bind to a DataView table that has a single DataTable as its...
    5. Bind Grid / Postback Problem
      Hi I have a db with 2 tables that I want to bind to a grid depending on a selection in a Dropdownlist Also I want to be able to select a row...
  3. #2

    Default Re: merging multiple datasets to bind to a grid

    Couple ways of doing this, you can call merge on the tables in question or
    you can build a new dataset from both datasets by iterating both. If you
    choose the latter, as you iterate and add, you need to remove so that you
    don't have duplicates on the second pass.

    --
    Regards,
    Alvin Bruney
    [ASP.NET MVP [url]http://mvp.support.microsoft.com/default.aspx][/url]
    Got tidbits? Get it here... [url]http://tinyurl.com/27cok[/url]
    "Rock" <rockisland@yahoo.com> wrote in message
    news:OaN94bdzEHA.352@TK2MSFTNGP14.phx.gbl...
    > How can I merge 2 datasets into one, then bind with the datagrid, or bind
    > the datagrid to 2 datasets? For instance, I have one stored procedure
    > that
    > finds company name, address, etc., and another stored procedure that finds
    > employees of that company and the employee information.
    >
    > Thanks.
    >
    >

    Alvin Bruney [MVP] Guest

  4. #3

    Default Re: merging multiple datasets to bind to a grid

    i have a dropdown in asp.net containing detail about emergency its fields are airways,police station etc having 27 such type of field and for each field i have a table in access data base i want to bind that table on select from dropdown and through click event of button binds only that particular value
    rajdothenew@gmail.com Guest

Posting Permissions

  • You may not post new threads
  • You may 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