We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to always show the last row of the grid ?

Thread ID:





148200 Oct 9,2019 09:04 PM UTC Oct 14,2019 05:37 AM UTC WinForms 5
Tags: GridGroupingControl
Ricardo Abranches
Asked On October 9, 2019 09:04 PM UTC

I have a gridGroupingControl bind to a datatable. 
i need that the last row is visible after the grid is populated.

Best Regards

Mohanraj Gunasekaran [Syncfusion]
Replied On October 10, 2019 09:17 AM UTC

Hi Ricardo, 
By default, GridGroupingControl do not have the direct support to freeze the last row. But, you could achieve your reported scenario by adding the GridControl in bottom of the GridGroupingControl and populate the last row value in that GridControl. Please refer the following KB link, 
Mohanraj G 

Ricardo Abranches
Replied On October 10, 2019 06:15 PM UTC

Hello Mohanraj,  thanks for your help

i don't need to freeze the row. What I need is the last row to be visible. Imagine the following scenario. a grid has 15 rows, but the visible area only allows to show 5. what I need to do is "move last" so that the last 5 rows are visible.

there are 2 zip files, whatihave is how the gris is after by populated. whatineed is how i need to be.

this was the only way that i found to solve my problem

            .ShowNavigationBar = True
            .ShowNavigationBarToolTips = False
            .ShowNavigationBar = False


Attachment: whatineed_284fef7a.zip

Mohanraj Gunasekaran [Syncfusion]
Replied On October 11, 2019 06:09 AM UTC

Hi Ricardo,  
Sorry for the inconvenience caused. 
To display the last row in visible state, you could use the SetTopRow method. Please refer the following code example and the sample. 
int topRowIndex = this.gridGroupingControl1.TableControl.ViewLayout.LastVisibleRow - this.gridGroupingControl1.TableControl.TopRowIndex - 1; 
this.gridGroupingControl1.TableControl.SetTopRow(this.gridGroupingControl1.TableModel.RowCount - topRowIndex); 
Please get back to us if you need any further assistance on this. 
Mohanraj G 

Ricardo Abranches
Replied On October 11, 2019 11:26 AM UTC

Hi Mohanraj

No need to be sorry , your suggestion allowed me to learn other things.

And sometimes it's complicated to describe exactly what we need when we have to think and write in another language

best regards, and keep up the good work


Arulpriya Ramalingam [Syncfusion]
Replied On October 14, 2019 05:37 AM UTC

Hi Ricardo, 
Thanks for the update. 
We are glad that your requirements are achieved by the suggestions we provided. 
Please get back to us, if you need any further assistance. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon