How to Display an image, from a DB, into the Gridview (ASP.NET 2.0)

Discussion in 'ASP .Net Datagrid Control' started by Auto, Apr 27, 2006.

  1. Auto

    Auto Guest

    Auto, Apr 27, 2006
    #1
    1. Advertisements

  2. Auto

    Boney.M. Guest

    Create a Template column in datagrid and do the following

    <Item template>
    <img src='<%#DataBinder.Eval(Container,"DataItem.Path")%>' >
    </item template>

    It will bind the datagrid with image.

    try this
     
    Boney.M., May 26, 2006
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tan

    Display image in GridView

    Tan, Aug 15, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    11,729
    Cacmd
    Jan 13, 2009
  2. Auto
    Replies:
    18
    Views:
    19,185
    the4man
    Apr 30, 2006
  3. Auto
    Replies:
    1
    Views:
    3,314
    the4man
    Apr 27, 2006
  4. Replies:
    1
    Views:
    797
  5. Sam
    Replies:
    2
    Views:
    735
    Bjorn Sagbakken
    Jul 12, 2007
  6. Auto
    Replies:
    2
    Views:
    341
  7. André Despont

    How can i display blob into GridView

    André Despont, Dec 21, 2006, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    1,111
    André Despont
    Dec 21, 2006
  8. Auto
    Replies:
    1
    Views:
    250
    vMike
    May 2, 2006
Loading...