Presentation of Data in the DataGrid

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

  1. #1

    Default Presentation of Data in the DataGrid

    I have what I believe is a basic question about presentation of data
    in a DataGrid.

    My DataGrid is backed by a DataTable that has a number of key values,
    for example, the number 1 in the country column might represent
    Australia. However, I want to go against a "look up" table to actually
    present "Australia" rather than 1. Is there a best practice for
    something like this. I am hoping that it is integrated with Visual
    Studio but I can't seem to find the best way to do it. Is this
    something that must be hand coded?

    Your advice is greatly appreciated!
    Thanks,
    AR.
    Johnny Cash Guest

  2. Similar Questions and Discussions

    1. getting data into the dataGrid
      I am accessing data from an XML file and trying to put it into a dataGrid. I have traced it and know its there, but I can't seem to get it to...
    2. Data Grid Header Filter Renderer or how do I get aheader to filter the data in a datagrid.
      Okay so on the same theme as why isn't the datagrid like Excel, I have created a (very cool) Filter header. 1) The filter looks like any other...
    3. Data Integration from DataGrid to DataGrid
      Helo everybody! can anyone help me out? I am facing problem of providing data from one component to another. As here both the components are...
    4. Newbie : Moving data from datagrid to datagrid
      Hello, I have a dataset1, inside a table1 and a dataview1. I have a datagrid1 with datasource the dataview1. I have another datagrid2. I want,...
    5. Using Same Datagrid for Different Data
      I am able to use the same datagrid to show two different sets of data. These seemed efficient to me. But what if I want the first column to be a...
  3. #2

    Default Re: Presentation of Data in the DataGrid

    one approach which avoids a database lookup and a table search is to bring
    back the discription in another column and keep that column hidden
    e.item.cells[0].visible = false for example. when you want to lookup 1 which
    is in cell one you have merely to write out the value e.item.cells[0].text

    --
    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]
    "Johnny Cash" <meaneyedcat@hotmail.com> wrote in message
    news:e04c3215.0407280858.6bfcc0ee@posting.google.c om...
    >I have what I believe is a basic question about presentation of data
    > in a DataGrid.
    >
    > My DataGrid is backed by a DataTable that has a number of key values,
    > for example, the number 1 in the country column might represent
    > Australia. However, I want to go against a "look up" table to actually
    > present "Australia" rather than 1. Is there a best practice for
    > something like this. I am hoping that it is integrated with Visual
    > Studio but I can't seem to find the best way to do it. Is this
    > something that must be hand coded?
    >
    > Your advice is greatly appreciated!
    > Thanks,
    > AR.

    Alvin Bruney [MVP] 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