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

GetCombinedStyle Hasxxxxx

Thread ID:





45749 Jun 28,2006 12:04 AM Jun 28,2006 09:11 PM Windows Forms 2
Tags: GridControl
Leow Kah Man
Asked On June 28, 2006 12:04 AM

Hi SF team, When I call GetCombinedStyle(). Shouldn''t it return me all the Hasxxxxx (eg. HasFont) values as false? Since I haven''t made changes to any values yet.

Administrator [Syncfusion]
Replied On June 28, 2006 01:17 PM

Hi Leow, HasFont property to TRUE, if font information has been initialized for the current object explictly. Here is a code snippet. //Has Font property indicate if you can explictly intialize the style object or not this.gridControl1[1,1].Font = new GridFontInfo(new Font("Arial",14f)); GridStyleInfo style = gridControl1.GetCombinedStyle (GridRangeInfo.Cell(1,1)); if ( style.HasFont) { Console.WriteLine("Has font property to TRUE"); } Here is a sample. http://www.syncfusion.com/Support/user/uploads/dataGridCell_aaa6f6b1.zip Please go through the shot notes on Style Attribute. http://www.syncfusion.com/Support/user/uploads/Short Notes_a360ab7a.zip Let me know if this helps. Best Regards, Haneef

Leow Kah Man
Replied On June 28, 2006 09:11 PM

The notes is very useful. Thank you.


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.

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.