Displaying a Graphic in the cell of a datagrid

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

  1. #1

    Default Displaying a Graphic in the cell of a datagrid

    I want one column of my DataGrid to display the same graphic in each row.

    Should I do this with a templated column?
    If so, what should the HTML look like in the specification?

    Many thanks.


    Andrew Chalk Guest

  2. Similar Questions and Discussions

    1. DataGrid: How do I select and copy text for a DataGrid cell?
      Hi, Do you know how do I select and copy txt from a cell inside a Flex 2 DataGrid? I don't want to use an itemRenderer. I will appreciate...
    2. Cell Renderers for Datagrid
      :sun; Hey, Anyone here can help me with my problem in writting custom cell renderer for a datagrid cell, I have dataprovider for a datagrid...
    3. How to set cell background based on cell value when datagrid is displayed
      I would like to check a datagrid cell value, and change the color of the cell background, when a datagrid is displayed. I want to do this as early...
    4. RadioButtonList In A DataGrid Cell - Can I find the selected button without editing the cell?
      I have an ASP.NET form with a DataGrid and Button. I want to put a RadioButtonList in a DataGrid cell. I bind it to an ArrayList which has a...
    5. Displaying html in Datagrid V2 cell
      Is it necessary to implement my own cellRenderer if I wish to display html in a datagrid cell or is there a simpler way?
  3. #2

    Default Re: Displaying a Graphic in the cell of a datagrid

    Thanks. I eventually used a tremplated column with an ImageButton.

    - A


    "Eliyahu Goldin" <removemeegoldin@monarchmed.com> wrote in message
    news:OjPiryS3FHA.2196@tk2msftngp13.phx.gbl...
    > It doesn't have to be a templated column. It could be a bound column with
    > ItemStyle.CssClass set into a css style including a background-image rule.
    > Or, if you prefer, it could be indeed a templated column including an <img
    > ... > control.
    >
    > Eliyahu
    >
    > "Andrew Chalk" <achalk@magnacartasoftware.com> wrote in message
    > news:OOCFynN3FHA.3976@TK2MSFTNGP15.phx.gbl...
    >> I want one column of my DataGrid to display the same graphic in each row.
    >>
    >> Should I do this with a templated column?
    >> If so, what should the HTML look like in the specification?
    >>
    >> Many thanks.
    >>
    >>
    >
    >

    Andrew Chalk Guest

  4. #3

    Default Re: Displaying a Graphic in the cell of a datagrid

    It doesn't have to be a templated column. It could be a bound column with
    ItemStyle.CssClass set into a css style including a background-image rule.
    Or, if you prefer, it could be indeed a templated column including an <img
    .... > control.

    Eliyahu

    "Andrew Chalk" <achalk@magnacartasoftware.com> wrote in message
    news:OOCFynN3FHA.3976@TK2MSFTNGP15.phx.gbl...
    > I want one column of my DataGrid to display the same graphic in each row.
    >
    > Should I do this with a templated column?
    > If so, what should the HTML look like in the specification?
    >
    > Many thanks.
    >
    >

    Eliyahu Goldin 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