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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. DataGrid Icons and Images

DataGrid Icons and Images

Scheduled Pinned Locked Moved C#
helpcsharpdotnettutorial
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
    Muecahit Goeksu
    wrote on last edited by
    #1

    Hello everybody, I have to D&D a Label into a DataGrid, which is styled like a Calendar and don`t know how to get the Icon - related to the Label - into the right row of the DataGrid. I have to use .NET Framework 1.1 and VS2003 for my Project. Now you know my problem. I hope anybody can help:confused: ;) ________________________________________________________________ The only true wisdom is in knowing you know nothing. - Socrates

    R 1 Reply Last reply
    0
    • M Muecahit Goeksu

      Hello everybody, I have to D&D a Label into a DataGrid, which is styled like a Calendar and don`t know how to get the Icon - related to the Label - into the right row of the DataGrid. I have to use .NET Framework 1.1 and VS2003 for my Project. Now you know my problem. I hope anybody can help:confused: ;) ________________________________________________________________ The only true wisdom is in knowing you know nothing. - Socrates

      R Offline
      R Offline
      Robert Rohde
      wrote on last edited by
      #2

      Where exactly is the problem? Is is that you are not able to resolve the row/column from the mouse position? If yes than have a loog at the HitTest function of the DataGrid.

      M 1 Reply Last reply
      0
      • R Robert Rohde

        Where exactly is the problem? Is is that you are not able to resolve the row/column from the mouse position? If yes than have a loog at the HitTest function of the DataGrid.

        M Offline
        M Offline
        Muecahit Goeksu
        wrote on last edited by
        #3

        thanks, that's right. i cannot get the icon into the row. I tried the hittest function but i did not find any samples to see how to code it. Since I'm a student to pogramming, i don't know many things... _______________________________________________________________ The only true wisdom is in knowing you know nothing. - Socrates

        R 1 Reply Last reply
        0
        • M Muecahit Goeksu

          thanks, that's right. i cannot get the icon into the row. I tried the hittest function but i did not find any samples to see how to code it. Since I'm a student to pogramming, i don't know many things... _______________________________________________________________ The only true wisdom is in knowing you know nothing. - Socrates

          R Offline
          R Offline
          Robert Rohde
          wrote on last edited by
          #4

          Basically you have to implement your own DataGridColumnStyle. It defines how columns are rendered and edited. This article[^] might be of help for you.

          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