Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Displaying an Image in Grid View in ASP.Net

Displaying an Image in Grid View in ASP.Net

Scheduled Pinned Locked Moved ASP.NET
csscsharpasp-netdatabase
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anuradha612
    wrote on last edited by
    #1

    Hi, I need to display a image in grid view. the image will vary for every record (i.e) if the data in the row is of less priority then the image will be in red color and if it is in high priority, then of some other color. and Probably the image will be stored in the database Can somebody suggest some mechanism for this. Thanks in advance

    S A 2 Replies Last reply
    0
    • A Anuradha612

      Hi, I need to display a image in grid view. the image will vary for every record (i.e) if the data in the row is of less priority then the image will be in red color and if it is in high priority, then of some other color. and Probably the image will be stored in the database Can somebody suggest some mechanism for this. Thanks in advance

      S Offline
      S Offline
      Sun Rays
      wrote on last edited by
      #2

      Hi, in the dataRowBound event of gridview you can write code for the same. You have to add one column in that you can bind data for priority, then in another column add template field and add image in that,now in dataRowBound event check for priority column and accordingly bind image. Hope it will help you.

      Thanks, Sun Rays To get something you must have to try once. My Articles

      1 Reply Last reply
      0
      • A Anuradha612

        Hi, I need to display a image in grid view. the image will vary for every record (i.e) if the data in the row is of less priority then the image will be in red color and if it is in high priority, then of some other color. and Probably the image will be stored in the database Can somebody suggest some mechanism for this. Thanks in advance

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Hi Anuradh, use this following link....you can get some idea from here. http://www.codeproject.com/KB/aspnet/GridImage.aspx[^]

        Best Regards ----------------- Abhijit Jana View My CodeProject Articles "Success is Journey it's not a destination"

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups