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. Windows Forms
  4. Grid View Column

Grid View Column

Scheduled Pinned Locked Moved Windows Forms
helpcssquestion
5 Posts 3 Posters 18 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
    Mahdi_kishislan
    wrote on last edited by
    #1

    i create control and this control derived from gridview control.then i add 2 column in constructor like this : InitializeComponent(); this.AutoGenerateColumns = false; DataGridViewCheckBoxColumn cb = new DataGridViewCheckBoxColumn(); cb.HeaderText = ""; cb.Name = "dgvcSelect"; this.Columns.Add(cb); DataGridViewTextBoxColumn tb = new DataGridViewTextBoxColumn(); tb.Name = "dgvcRowNumber"; tb.HeaderText = "ردیف"; but when i run my program 4 column generate for me.where is the problem? please help me

    D J 2 Replies Last reply
    0
    • M Mahdi_kishislan

      i create control and this control derived from gridview control.then i add 2 column in constructor like this : InitializeComponent(); this.AutoGenerateColumns = false; DataGridViewCheckBoxColumn cb = new DataGridViewCheckBoxColumn(); cb.HeaderText = ""; cb.Name = "dgvcSelect"; this.Columns.Add(cb); DataGridViewTextBoxColumn tb = new DataGridViewTextBoxColumn(); tb.Name = "dgvcRowNumber"; tb.HeaderText = "ردیف"; but when i run my program 4 column generate for me.where is the problem? please help me

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Don't cross post in multiple forums. Pick one forum best suited to your question and post your question once!

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak

      1 Reply Last reply
      0
      • M Mahdi_kishislan

        i create control and this control derived from gridview control.then i add 2 column in constructor like this : InitializeComponent(); this.AutoGenerateColumns = false; DataGridViewCheckBoxColumn cb = new DataGridViewCheckBoxColumn(); cb.HeaderText = ""; cb.Name = "dgvcSelect"; this.Columns.Add(cb); DataGridViewTextBoxColumn tb = new DataGridViewTextBoxColumn(); tb.Name = "dgvcRowNumber"; tb.HeaderText = "ردیف"; but when i run my program 4 column generate for me.where is the problem? please help me

        J Offline
        J Offline
        John D Sanders
        wrote on last edited by
        #3

        Need a bit more of the code the way this code looks is that you have created two columns but can't see enough to know what is happening. Please post the entire scope of the problem so we can help.

        Thanks JD http://www.seitmc.com/seitmcWP

        D 1 Reply Last reply
        0
        • J John D Sanders

          Need a bit more of the code the way this code looks is that you have created two columns but can't see enough to know what is happening. Please post the entire scope of the problem so we can help.

          Thanks JD http://www.seitmc.com/seitmcWP

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          You realize that this post is over 6 months old, right? Chances are good we'll never hear from his again.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak

          J 1 Reply Last reply
          0
          • D Dave Kreskowiak

            You realize that this post is over 6 months old, right? Chances are good we'll never hear from his again.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak

            J Offline
            J Offline
            John D Sanders
            wrote on last edited by
            #5

            HA! Well no I didn't look at the date. Doh! Just looking to do some give back.

            Thanks JD http://www.seitmc.com/seitmcWP

            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