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. Divide width of row datagrid in C# with screen specification ????

Divide width of row datagrid in C# with screen specification ????

Scheduled Pinned Locked Moved C#
questioncsharphelp
3 Posts 3 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.
  • A Offline
    A Offline
    aa_zz
    wrote on last edited by
    #1

    hi all. I divide width of row datagridview in c# . when i set columnHeaderVisible = true: OK but i set columnHeaderVisible = false: it have been wrong 1 desert = width of row header. question : when set columnHeaderVisible = false. how i do to width of rows in datagrid not wrong ??? please help me. code dataGridView.Height = h*12; dataGridView.RowTemplate.Height = h; if dataGridView.columnHeaderVisible = true ==> ok but : dataGridView.columnHeaderVisible = false ==> not ok nothing

    P D 2 Replies Last reply
    0
    • A aa_zz

      hi all. I divide width of row datagridview in c# . when i set columnHeaderVisible = true: OK but i set columnHeaderVisible = false: it have been wrong 1 desert = width of row header. question : when set columnHeaderVisible = false. how i do to width of rows in datagrid not wrong ??? please help me. code dataGridView.Height = h*12; dataGridView.RowTemplate.Height = h; if dataGridView.columnHeaderVisible = true ==> ok but : dataGridView.columnHeaderVisible = false ==> not ok nothing

      P Offline
      P Offline
      Programm3r
      wrote on last edited by
      #2

      Hi, Okay, I read your question a couple of times, and I have no idea what you just said / asked? :confused::confused: Could you please try and be more specific about the problem? Kind regards,

      1 Reply Last reply
      0
      • A aa_zz

        hi all. I divide width of row datagridview in c# . when i set columnHeaderVisible = true: OK but i set columnHeaderVisible = false: it have been wrong 1 desert = width of row header. question : when set columnHeaderVisible = false. how i do to width of rows in datagrid not wrong ??? please help me. code dataGridView.Height = h*12; dataGridView.RowTemplate.Height = h; if dataGridView.columnHeaderVisible = true ==> ok but : dataGridView.columnHeaderVisible = false ==> not ok nothing

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

        You're going to have to define what a correct column width should be for anyone to answer this. What do you mean by "not wrong"??

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

        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