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

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 09:17 AM

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


AD Administrator Syncfusion Team August 8, 2003 09:29 AM

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 09:31 AM

Thanks, Clay.

Loader.
Live Chat Icon For mobile
Up arrow icon