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

Border delimiting frozen and regular columns

Thread ID:

Created:

Updated:

Platform:

Replies:

1634 Nov 15,2002 07:42 PM UTC Nov 18,2002 04:44 PM UTC WinForms 3
loading
Tags: GridControl
Ivan Pelly
Asked On November 15, 2002 07:42 PM UTC

Hi - Is there any way to have the border that delimits frozen and regular columns have a different appearance than the heavy dotted line - maybe more like the 3D, several-pixel-wide divider that Excel draws when you make a split? Thanks, Ivan Pelly

Administrator [Syncfusion]
Replied On November 16, 2002 03:53 PM UTC

The only thing your can do through property setting is to change its color. Me.GridControl1.Properties.FixedLinesColor = System.Drawing.Color.Red

Ivan Pelly
Replied On November 18, 2002 02:40 PM UTC

Could this be considered as an enhancement to a future version - seems like it'd be pretty simple to implement ;) Thanks!

Administrator [Syncfusion]
Replied On November 18, 2002 04:44 PM UTC

You can use a splitter similar to what you see in Excel. Take a look at the Quick Start/Splitter sample or the DataBase/GridRecordNavigationBar sample. As far as making the line between frozen rows thicker, here is a way you might be able to do it now. In a GridControl, you can explicitly set the bottom border of the last frozen row fo have some special border. In a GridDataBoundGrid, you would handle the PrepareViewStyleInfo event to set this special border style for the last frozen row as a GridDataBoundGrid does not support row styles directly. Here is PrepareViewStyleInfo handler that should work for either a GridControl or a GridDataBoundGrid.
private void gridControl1_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)
{
	if(e.RowIndex > 0 && e.RowIndex == this.gridControl1.Model.Rows.FrozenCount)
		e.Style.Borders.Bottom = new GridBorder(GridBorderStyle.Solid, Color.Blue, GridBorderWeight.Thick);
}

CONFIRMATION

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.

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

;