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

Border delimiting frozen and regular columns

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

3 Replies

AD Administrator Syncfusion Team 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

IP Ivan Pelly 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!

AD Administrator Syncfusion Team 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);

Live Chat Icon For mobile
Up arrow icon