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. Extending Windows.Form DataGrid class

Extending Windows.Form DataGrid class

Scheduled Pinned Locked Moved C#
csstutorial
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.
  • R Offline
    R Offline
    ronin1770
    wrote on last edited by
    #1

    HI, I want to extend Windows.Forms.DataGrid class so I can add buttons to data grid's columns. I haven't found any good sample of this over the internet... if any body has link to a better example/sample - please forward me that URL thanx in advance:(

    H 1 Reply Last reply
    0
    • R ronin1770

      HI, I want to extend Windows.Forms.DataGrid class so I can add buttons to data grid's columns. I haven't found any good sample of this over the internet... if any body has link to a better example/sample - please forward me that URL thanx in advance:(

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      You mean in the headers, or in the columns themselves? You don't need to "extend the DataGrid" to do this, though. You simply implement a DataGridColumnStyle derivative. If you look at the class documentation[^] for the DataGridColumnStyle, it even gives you a completely example that hosts a DateTimePicker control in the data columns.

      Microsoft MVP, Visual C# My Articles

      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