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. Datagridview userdefined unbound column properties [modified]

Datagridview userdefined unbound column properties [modified]

Scheduled Pinned Locked Moved C#
designquestioncareer
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.
  • T Offline
    T Offline
    TheCardinal
    wrote on last edited by
    #1

    ...is this possible? how do you add userdefined properties to the dgv unbound column properties designer. i want to add a user defined properties on the unbound columns settings that can be set during design time

    Life - Dreams = Job TheCardinal BenPOS Systems

    modified on Sunday, November 22, 2009 11:24 PM

    D 1 Reply Last reply
    0
    • T TheCardinal

      ...is this possible? how do you add userdefined properties to the dgv unbound column properties designer. i want to add a user defined properties on the unbound columns settings that can be set during design time

      Life - Dreams = Job TheCardinal BenPOS Systems

      modified on Sunday, November 22, 2009 11:24 PM

      D Offline
      D Offline
      dojohansen
      wrote on last edited by
      #2

      I don't think that's possible; you are essentially asking to modify framework types. That's generally not possible. But in most cases we can derive new types from them (when they are not sealed). In this case you could perhaps derive a custom grid type from DataGridView, a column type from DataGridViewColumn, and have your custom grid use your custom column for unbound columns. That way you can add whatever properties you like and associate your own designer class and type editors with it if you wish.

      T 1 Reply Last reply
      0
      • D dojohansen

        I don't think that's possible; you are essentially asking to modify framework types. That's generally not possible. But in most cases we can derive new types from them (when they are not sealed). In this case you could perhaps derive a custom grid type from DataGridView, a column type from DataGridViewColumn, and have your custom grid use your custom column for unbound columns. That way you can add whatever properties you like and associate your own designer class and type editors with it if you wish.

        T Offline
        T Offline
        TheCardinal
        wrote on last edited by
        #3

        thanks for the reply, thats what im afraid, but i have already tried to look for more commercial product that can easily be extended :D thanks for the input, ill try your idea :D

        Life - Dreams = Job TheCardinal BenPOS Systems

        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