Set Font Style of Cell in GridGropingControl

For GridControl, I know how to get a particular cell using RowIndex and ColumnIndex. And then apply the font settings like Bold, italic ect.

e.g
grdCtrl[row, col].Font.Bold = true;


Now my question is, how I can get a cell and apply these font properties for GridGroupingControl ?


1 Reply

SR Sri Rajan Syncfusion Team April 24, 2008 12:52 AM UTC

Hi Puneet,

Thank you for your patience.

Please refer the below code to apply these font properties like bold,italic to a cell in GridGroupingControl.


void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
e.Style.Font.Bold = true;
e.Style.Font.Italic = true;
}


Please let me know if this helps.

Best Regard,
Srirajan



Loader.
Up arrow icon