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. General Programming
  3. C#
  4. Get the value of RepositoryItemPictureEdit in GridControl

Get the value of RepositoryItemPictureEdit in GridControl

Scheduled Pinned Locked Moved C#
help
2 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.
  • N Offline
    N Offline
    nhanlaptrinh
    wrote on last edited by
    #1

    I have one GridControl Form can contain column of type image PictureEdit and 1 Button, when its current right-click the column cell of the selected images and photos from your computer to load. But when I click on the Button will not get the value of the image column, I wrote the following code:

    using (MemoryStream stream = new MemoryStream())
    { repositoryItemPictureEdit1.Appearance.Image.Save(stream, ImageFormat.Jpeg);
    }

    The code on the report when it is run "Object reference not set to an instance of an object." What do you know with his help, thank you very much.

    L 1 Reply Last reply
    0
    • N nhanlaptrinh

      I have one GridControl Form can contain column of type image PictureEdit and 1 Button, when its current right-click the column cell of the selected images and photos from your computer to load. But when I click on the Button will not get the value of the image column, I wrote the following code:

      using (MemoryStream stream = new MemoryStream())
      { repositoryItemPictureEdit1.Appearance.Image.Save(stream, ImageFormat.Jpeg);
      }

      The code on the report when it is run "Object reference not set to an instance of an object." What do you know with his help, thank you very much.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Then presumably, repositoryItemPictureEdit1 has not been initialised to refer to anything.

      Veni, vidi, abiit domum

      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