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

Can I set border styles in GridQueryCellInfo handler?

I'm trying to set a border style inside a GridQueryCellInfo handler by doing something like: style.Borders.Left = new sfGrid.GridBorder (sfGrid.GridBorderStyle.Standard, System.Drawing.Color.Black, sfGrid.GridBorderWeight.Thick); But it's not working. What am I doing wrong?

3 Replies

AK Andy Kay August 8, 2003 01:17 PM UTC

I should point out that sfGrid is: using sfGrid = Syncfusion.Windows.Forms.Grid;

AD Administrator Syncfusion Team August 8, 2003 01:29 PM UTC

You can only apply thichnesses to solid borders. So try: style.Borders.Left = new GridBorder(GridBorderStyle.Solid, Color.Blue, GridBorderWeight.Thick);

AK Andy Kay August 8, 2003 01:31 PM UTC

Thanks, Clay.

Live Chat Icon For mobile
Up arrow icon