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.
Unfortunately, activation email could not send to your email. Please try again.

Grid control Frozen Pane Style

Thread ID:

Created:

Updated:

Platform:

Replies:

69946 Nov 19,2007 03:51 PM Nov 19,2007 05:07 PM Windows Forms 1
loading
Tags: GridControl
barcode
Asked On November 19, 2007 03:51 PM

Hello,

I am wondering is there anyway to change to the style of the lines dividing the frozen rows and columns. I.e. size and colour?

Thank you.

Nick


haneefm [Syncfusion]
Replied On November 19, 2007 05:07 PM

Hi Nick,

You can change the color of that frozon line using this property:

this.gridControl1.Properties.FixedLinesColor = Color.Red;

If you want to change the size of this line, you need to handle QueryCellInfo, and in the handler if e.ColIndex points to your frozen column, then set e.Style.Border.Right = new GridBorder(....); to have teh border you want to see.

private void gridControl1_QueryCellInfo(object sender, GridQueryCellInfoEventArgs e)
{
if(e.ColIndex == this.gridControl1.Cols.FrozenCount&& e.RowIndex > 0)
{
e.Style.Borders.Right = new GridBorder(GridBorderStyle.Solid, Color.Red, GridBorderWeight.Thin);
}
}

Best regards,
Haneef



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.

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.

;