DataGridView Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swapnil350
    New Member
    • Dec 2008
    • 1

    #1

    DataGridView Problem

    I have developed an application in vb.net (Win32 Appl)

    I have problem in datagridview

    i have uploaded image which where i made a red colored circle
    image :-



    as u see in image i made red circle which shows that there is empty space
    i don't want that empty space but i cant reduce the size of gridview also because sometime data is very large an sometimes its small
    so i want to show the data in datagridview without blank space even if my data is to small

    in short i want that my all columns will automatically arrange there size according to the size of gridview size
  • OuTCasT
    Contributor
    • Jan 2008
    • 374

    #2
    Set the AutoSizeColumns Mode in the properties of the datagridview to FILL and it should fill up the spaces.

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      Originally posted by OuTCasT
      Set the AutoSizeColumns Mode in the properties of the datagridview to FILL and it should fill up the spaces.

      In addition to what OutCast has suggested, you could consider docking the DataGridView in it's parent container which will fill that space.

      Comment

      Working...