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

How to always show the last row of the grid ?

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

Best Regards

5 Replies

MG Mohanraj Gunasekaran Syncfusion Team October 10, 2019 04:17 AM

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 

RA Ricardo Abranches October 10, 2019 01:15 PM

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

MG Mohanraj Gunasekaran Syncfusion Team October 11, 2019 01:09 AM

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 

RA Ricardo Abranches October 11, 2019 06:26 AM

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


AR Arulpriya Ramalingam Syncfusion Team October 14, 2019 12:37 AM

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. 

Live Chat Icon For mobile
Up arrow icon