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
close icon

Grid control Frozen Pane Style

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


1 Reply

HA haneefm Syncfusion Team November 19, 2007 10:07 PM UTC

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



Loader.
Live Chat Icon For mobile
Up arrow icon