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. Overriding DataGrid::OnPaint

Overriding DataGrid::OnPaint

Scheduled Pinned Locked Moved C#
question
3 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.
  • I Offline
    I Offline
    Ista
    wrote on last edited by
    #1

    Does anyone have a link ro what not to override this method I need to customize the row header icon and draw a line through the row if the void property is true and ideas? nbick I'm not an expert yet, but I play one at work. Yeah and here too.

    A 1 Reply Last reply
    0
    • I Ista

      Does anyone have a link ro what not to override this method I need to customize the row header icon and draw a line through the row if the void property is true and ideas? nbick I'm not an expert yet, but I play one at work. Yeah and here too.

      A Offline
      A Offline
      A Wegierski
      wrote on last edited by
      #2

      I use OnPaint in DataGrid to autosize one of their columns. It works unexpectedly good ... with some exceptions (not Exceptions). In some cases it gives neverending loops. Now I'm working on it. Hi, AW

      I 1 Reply Last reply
      0
      • A A Wegierski

        I use OnPaint in DataGrid to autosize one of their columns. It works unexpectedly good ... with some exceptions (not Exceptions). In some cases it gives neverending loops. Now I'm working on it. Hi, AW

        I Offline
        I Offline
        Ista
        wrote on last edited by
        #3

        it would be much easier to override SetValueAtRow and caluclate the column width there inside the column class I'm not an expert yet, but I play one at work. Yeah and here too.

        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