Hi Gokulkumar B,
The sample u have given applies apperance to all cloumns and data in table.
There are three things which i want to achieve.
1) I want to apply apperance settings on column Header ( i-e font , Color ,Bold). These settings varies from column to column in a grid.
2) I want to apply the currency(i-e $,#) to all cell values for a particular column.
3) I want to apply the apperance properties
(i-e back color,font) to "selective" cell values of a column in a grid.
How can i do above all?
Regards
Naveed Afzaal
>Hi Naveed,
You can apply the appearance settings for ColumnheaderCell and RecordFieldcell using the below code snippet.
//Applies the TextColor settings for both ColumnHeader and RecordFieldCell
this.GridGroupingControl1.TableDescriptor.Appearance.ColumnHeaderCell.TextColor = Color.DimGray;
this.GridGroupingControl1.TableDescriptor.Appearance.AnyRecordFieldCell.TextColor = Color.DimGray;
//Applies the Font settings for ColumnHeadercell
this.GridGroupingControl1.TableDescriptor.Appearance.ColumnHeaderCell.Font.Facename = "Monotype Corsiva";
Attached is the sample for your ready references.
http://websamples.syncfusion.com/samples/Grid.Web/5.1.0.0/F60359/GridGroup_Forum60359/main.htmthis.GridGroupingControl1.Table.TableModel.ColCount will always holds the number of columns in the Grid. Changing it doesn't make any sense. i.e "ColCount" will get changed only when the new columns are get added to GridGroupingControl.
Let us know if you need any other help.
Thanks for using Syncfusion products.
Regards,
Gokulkumar B