GetCombinedStyle Hasxxxxx

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.

2 Replies

AD Administrator Syncfusion Team June 28, 2006 05:17 PM UTC

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


LK Leow Kah Man June 29, 2006 01:11 AM UTC

The notes is very useful. Thank you.

Loader.
Up arrow icon