Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
A user ask me : Can you let the space bellow the datagridview data rows heighter than now? He used office Access application program before. In Access application program, when the last row in the bottom of the data sheet window,if we continue to drag the hscrollbar, the last row can continue to scroll up. So, the space between the datagridview last row and the bottom of the sheet window can more heighter,nearly half of the window, or more. I want I can do it by using C# . Thanks!
Posted

1 solution

If I understand you correctly, then I think all you need to do, is add some empty rows to the DataGridView after your own data . To add 10 rows to the DataGridView do this

C#
dataGridView1.Rows.Add(10);


Hope this helps
 
Share this answer
 
Comments
MacRaider4 20-Jun-11 8:34am    
I think he's asking how to have the bottom row scroll up from the bottom? Lets say there are 15 rows and it can only display 5 at a time... he wants to be able to have that last row scroll to the top so you'd only see the last row in the display? That's what I got out of it at least...???
aymyz 20-Jun-11 21:15pm    
Thank you firstly! But after this,the original last row now is the 11th row Of reverse, not the last row.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900