![]() |
|
GTP.NET FAQ 10667Is it possible to have different font color for Header and the cell? Please note that this article
refers to the GTP.NET Jump to article- 2008-03-25 15:10:00 - Email plexityHide Question Hi, Is it possible to have different font color for Header and the cell. If I set property in the celllayout it applies to whole of grid. I want to apply different font colors to the headers and the cell. Answer Yes. You can assign a unique CellLayout to each cell. The Column heads can also be treated as cells: GridColumn.ColumnCell so you can assign CellLayouts to them to. You can find a CellLayout from a CellLayoutName like this Grid.CellLayouts.GetFromName("theNameOfTheCellLayout"); This sample shows how a header cell in Gantt_ASP is given a Bold type face: CellLayout cl=new CellLayout();cl.Name="ABoldCellLayout"; cl.Font=new Font(FontFamily.GenericSerif,14,FontStyle.Bold); Gantt_ASP_Vendor.Gantt.Grid.CellLayouts.Add(cl); // When using Gantt_ASP it is even more important to add the cellLayout to this collection, or else it will not we added to the cssGantt_ASP_Vendor.Gantt.Grid.Columns[0].ColumnCell.Layout=Gantt_ASP_Vendor.Gantt.Grid.CellLayouts.GetFromName( "ABoldCellLayout");
|
"This is too GREAT. I must say you have strong support and really good programmers at your place. Your entire team is good. Just Fantastic! – 100%" |
| (C) 1999-2010 PlexityHide.com Grastensvagen 24, S-163 45 Spanga Sweden E-mail: support@plexityhide.com |