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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how to freeze a row and keep it at the bottom of the gridbounddatagrid

Thread ID:





48034 Aug 17,2006 06:55 PM UTC Sep 5,2006 10:51 AM UTC WinForms 13
Tags: GridControl
Charlie Mao
Asked On August 17, 2006 06:55 PM UTC

does anyone know how to freeze a row and keep it at the bottom of the gridbounddatagrid?

Administrator [Syncfusion]
Replied On August 17, 2006 10:46 PM UTC

This is not supported through property settings. You can only freeze rows at the top of the grid through property settings.

Here is a sample that has a class that you can use to add a summary row to either a GridDataBoundgrid or a GridControl. It adds the row at the bottom of the Grid. The idea is to have another grid with a single row and syncronize it with the main Grid.


Charlie Mao
Replied On August 21, 2006 01:19 PM UTC

Thanks so mcuh for your help. I''ll take a look at the example and get back to you on my status.

Charlie Mao
Replied On August 21, 2006 05:42 PM UTC

I tried using the sample you sent me, but I just get a gray row on the bottom and it is not summing up the columns or at least I cant see it. Do you know why it is doing this.


Administrator [Syncfusion]
Replied On August 22, 2006 08:48 AM UTC

Hi Charlie,

See the following KB article, and let me know if this satisfies your query.

Thanks for using Syncfusion products.

Best Regards,

Charlie Mao
Replied On August 22, 2006 02:35 PM UTC

The above samples worked great, but for some reason, it adds alot of empty rows between the summary row and the original datagrid. You know why its doing this.


Charlie Mao
Replied On August 22, 2006 03:22 PM UTC

Nevermind, I figured this problem out. Thanks

Charlie Mao
Replied On August 24, 2006 07:50 PM UTC

Hi, I used the SummaryRows class that you suggested and it worked great. I was wondering, is there a way to adjust this to where you can have multiple summary rows. Like three total rows for example.

Administrator [Syncfusion]
Replied On August 25, 2006 07:39 AM UTC

Hi Charlie,

I have created a sample as per your specification. The sample illustrates the possiblity to add the multiple summary rows in a grid. Please refer to the attached sample and let me know if you are trying something different.

Here is a sample.

Best Regards,

Charlie Mao
Replied On August 26, 2006 12:24 AM UTC


That is exactly what I was looking for. Thanks for your help...


Charlie Mao
Replied On August 30, 2006 08:30 PM UTC

The summaryrows work fine, but currently the size is fixed no matter how many rows I have. If I have alot of rows, you have to scroll down. Is there a way to adjust the sitesummaryrow function to always place the summary row at the bottom no matter how many rows there are?

Administrator [Syncfusion]
Replied On August 31, 2006 11:33 AM UTC

Hi Charlie,

You can enable the default scrolling in a Summary grid and set ActivateCurrentCellBehavior / SelectCellsMouseButtonsMask property to None. Please refer the attached sample for more details.

//this.summaryGrid.VScrollBehavior = GridScrollbarMode.Disabled;
//this.summaryGrid.HScrollBehavior = GridScrollbarMode.Disabled;
//this.summaryGrid.Enabled = false;

this.summaryGrid.ActivateCurrentCellBehavior = GridCellActivateAction.None;
this.summaryGrid.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.None;

Here is a modified sample.

Let me know if this helps.

Charlie Mao
Replied On September 4, 2006 10:46 PM UTC

Hey Haneef,

Thanks for replying. I was talking about the location of the summary grid. You can see from the attached file that the summary cuts off some of my rows and for other tables, it places it right. I was wondering if I could set the location to where the summary is always placed at the end of the table no matter how many rows I have. Thanks!!!


Administrator [Syncfusion]
Replied On September 5, 2006 10:51 AM UTC

Hi Charlie,

You can change the location of the summary grid in the SiteSummaryRow method. Here is a code snippet.

int vheight = this.grid.Model.RowHeights.GetTotal(this.grid.TopRowIndex,this.grid.Model.RowCount );
this.summaryGrid.Location = new Point(0, vheight + 5);
this.summaryGrid.Size = new Size(this.grid.ClientSize.Width , this.grid.DefaultRowHeight);

private void grid_TopRowChanged(object sender, GridRowColIndexChangedEventArgs e)

Please refer the modified sample for more details.

Let me know if you need more information on this.


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