Results 1 to 4 of 4

Thread: Fullgrid on datagridview

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2024
    Posts
    11

    Fullgrid on datagridview

    I need help guys. anyone know how to display fullgrid in datagridview even when data is not reach the buttom

    Name:  Untitled.png
Views: 159
Size:  16.9 KBName:  Untitled.png
Views: 159
Size:  16.9 KB

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,589

    Re: Fullgrid on datagridview

    You can add extra rows…

    DataGridViewName.Rows.Add([number of rows])

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,605

    Re: Fullgrid on datagridview

    The grid will only display rows that exist, i.e. rows that you have added either explicitly or implicitly, e.g. by data binding. As .paul. says, you can add the specific number of rows required to fill the space, but if the user changes the height of the form then you will either reveal more empty space or hide rows that you've added. It won't just fill space with the appearance of a grid. Also, if you are binding data then you can't add rows explicitly, so you'd have to add extra items to your bound list.

  4. #4

    Thread Starter
    New Member
    Join Date
    Jun 2024
    Posts
    11

    Re: Fullgrid on datagridview

    Thank you sir maybe ill just add rows for my datagridview

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width