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. Visual Basic
  4. How to create new property (cols,Rows) to DataGridView [modified]

How to create new property (cols,Rows) to DataGridView [modified]

Scheduled Pinned Locked Moved Visual Basic
designtutorialquestion
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.
  • M Offline
    M Offline
    Member 3031069
    wrote on last edited by
    #1

    Hi All ! I want create new property ( Rows , Cols) to DataGridView (->So I can choice and set Rows munber and cols munber from form design) Please tell me what I have todo ? Thanks All support. Hai

    This will appear at the end of articles you submit to the Code Project

    modified on Monday, July 28, 2008 1:19 AM

    C 1 Reply Last reply
    0
    • M Member 3031069

      Hi All ! I want create new property ( Rows , Cols) to DataGridView (->So I can choice and set Rows munber and cols munber from form design) Please tell me what I have todo ? Thanks All support. Hai

      This will appear at the end of articles you submit to the Code Project

      modified on Monday, July 28, 2008 1:19 AM

      C Offline
      C Offline
      C1AllenS
      wrote on last edited by
      #2

      Hello Hai, You will have to create a new UserControl inheriting your application from the DataGridView. Then you can define new Properties for the control. Inherited NameSpace will be System.Windows.Forms.DataGridView. Hope this helps. Regards, Allen

      Allen Smith ComponentOne LLC www.componentone.com

      M 1 Reply Last reply
      0
      • C C1AllenS

        Hello Hai, You will have to create a new UserControl inheriting your application from the DataGridView. Then you can define new Properties for the control. Inherited NameSpace will be System.Windows.Forms.DataGridView. Hope this helps. Regards, Allen

        Allen Smith ComponentOne LLC www.componentone.com

        M Offline
        M Offline
        Member 3031069
        wrote on last edited by
        #3

        Hi Allen Thanks you support I have create a new UserControl as you said ---------- Public Property Cols() As Integer Get Return Me._Cols End Get Set(ByVal value As Integer) Me._Cols = value Me.Invalidate() End Set End Property ------------------ on form design display property Cols, I don't know after that what I must todo Please help me ! :doh:

        This will appear at the end of articles you submit to the Code Project

        modified on Monday, July 28, 2008 3:42 AM

        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