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 add remaining blank column at datagridview ?

How to add remaining blank column at datagridview ?

Scheduled Pinned Locked Moved Visual Basic
questiontutorial
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.
  • C Offline
    C Offline
    cheeken2u
    wrote on last edited by
    #1

    i using datagridview to display data. i just have 2 column of record to display it. After i binidng the data inti datagridview,what i can see is the datagridview consist 2 column and remaining is the background of the datagridview.So, how can i do to add another blank column to fill the remaining space inside the datagridview? so the datagridview have 3 column and total width of the 3 column is equal to the width of the datagridview ?

    Regards, Chee ken

    P 1 Reply Last reply
    0
    • C cheeken2u

      i using datagridview to display data. i just have 2 column of record to display it. After i binidng the data inti datagridview,what i can see is the datagridview consist 2 column and remaining is the background of the datagridview.So, how can i do to add another blank column to fill the remaining space inside the datagridview? so the datagridview have 3 column and total width of the 3 column is equal to the width of the datagridview ?

      Regards, Chee ken

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

      i think you can't add more columns to a binded datagridview, but why don't you set the width of last column to fill the empty space

      Vilsad P P MCTS (Windows Applications) .Net 2.0

      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