Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have create an row Total at bottom DataGridview and I would like to fix this Row always show in DataGridView.

Can I frozen this this Row (position: RowCount - 1) out of bug when DataGridView have Scrolls?

Has Anyone got other way to always this row?



Thanks a lot
Posted
Comments
Sandeep Mewara 3-Jun-10 2:01am    
You are asking this for Windows application and not web. Right?
thuyphuongid 3-Jun-10 2:05am    
Windows application

Take a look at Summary DataGridView[^], from here on Code Project.

It appears to do what you want but even if it is not suitable it may give you some ideas.

Good luck! :)
 
Share this answer
 
Comments
thuyphuongid 3-Jun-10 21:08pm    
Thanks a lot. I am looking for some ideas
thuyphuongid 3-Jun-10 22:06pm    
Thank you very much.
Nyoman Rahmadi 7-Mar-11 22:46pm    
There is an error when I freeze column in Summary Datagridview
I fix it with this code: FirstDisplayedScrollingColumnIndex = position + [freezed column count]
in hScrollBar_Scroll procedure in DataGridviewSummary class.
But an error again when i remove some column. Some column not fully visible and not be placed at the right index when scrolling. How to resolve it?
Sory bad English
The most obvious way to do this, is to change your data souce and remove the last row. Or, if you mean leave a row always visible as you scroll, remove it from the data source and then show it under the grid. The grid does not support that sort of behaviour.
 
Share this answer
 

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