Results 1 to 2 of 2

Thread: dataGridView blank rows

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2009
    Location
    sydney
    Posts
    265

    dataGridView blank rows

    on my form i have a GridView with add/edit/delete rows disabled, i need it to show blank rows for the unused size rather than blank background... something like invoices
    thanks

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: dataGridView blank rows

    That's not really how a DataGridView works. If you want a specific number of rows in the grid then you have to add a specific number of rows. What happens if the user changes the size of the grid though? You can't just make extra rows appear and disappear automatically. You may be able to write code to add and remove rows manually but I'm not sure how well it would behave.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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