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. Add image to gridview

Add image to gridview

Scheduled Pinned Locked Moved ASP.NET
helpannouncement
4 Posts 2 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.
  • M Offline
    M Offline
    musicDiva
    wrote on last edited by
    #1

    Hi im trying to add an image to a column in a gridview, but when i try to update my table with the path for the picture in the show table data, i get the error "can not use the result pane to set this fields data to values other than null" ~/Pictures/Daughter.jpg is the text that im trying to enter into the column for PictureUrl, where Pictures is a folder that contains the images. Help Please!! Marie

    K 1 Reply Last reply
    0
    • M musicDiva

      Hi im trying to add an image to a column in a gridview, but when i try to update my table with the path for the picture in the show table data, i get the error "can not use the result pane to set this fields data to values other than null" ~/Pictures/Daughter.jpg is the text that im trying to enter into the column for PictureUrl, where Pictures is a folder that contains the images. Help Please!! Marie

      K Offline
      K Offline
      Kunal P
      wrote on last edited by
      #2

      u can not retreive the image directly on to the grid... u will need to specify the image column as an item template and write this imgcreate file wud contain the code to do the same Check this...[^]

      Kunal

      M 1 Reply Last reply
      0
      • K Kunal P

        u can not retreive the image directly on to the grid... u will need to specify the image column as an item template and write this imgcreate file wud contain the code to do the same Check this...[^]

        Kunal

        M Offline
        M Offline
        musicDiva
        wrote on last edited by
        #3

        Hi Kunal,thanks i should have mentioned that im working with c#.Any suggestions? Marie

        K 1 Reply Last reply
        0
        • M musicDiva

          Hi Kunal,thanks i should have mentioned that im working with c#.Any suggestions? Marie

          K Offline
          K Offline
          Kunal P
          wrote on last edited by
          #4

          no probs.. get the VB code converted into C#.. i m givin u the link Convert your code

          Kunal

          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