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 questions

2 questions: Is is possible to have an absolute position for a border : ColStyles[4].Borders.Right=.... This means that this border style is attached to the 4 column so if it changes position the style will go with it. I would like this style to stay always at the 4th column even if this changes position Also Is it possible to have a double line instead of the extrathik as the border line? Thanks

1 Reply

AD Administrator Syncfusion Team April 4, 2005 04:14 PM UTC

If you do not want the borders to move, then do not set them in grid.ColStyles. Instead, try handling QueryCellInfo, then if e.RowIndex == -1 and e.ColIndex points to your special column, set e.Style.Borders..... to the value you want. There is no property setting that will draw two doble lines, but you can handle DrawCellFrameAppearance and daw custom borders if you like, Take a look at the \Syncfusion\Essential Studio\\Windows\Grid.Windows\Samples\In Depth\CustomBorders sample.

Live Chat Icon For mobile
Up arrow icon