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

Can I set border styles in GridQueryCellInfo handler?

Thread ID:





6319 Aug 8,2003 01:05 PM UTC Aug 8,2003 01:31 PM UTC WinForms 3
Tags: GridControl
Andy Kay
Asked On August 8, 2003 01:05 PM UTC

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?

Andy Kay
Replied On August 8, 2003 01:17 PM UTC

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

Administrator [Syncfusion]
Replied On 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);

Andy Kay
Replied On August 8, 2003 01:31 PM UTC

Thanks, Clay.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon