Exemplo n.º 1
0
 void gridControl1_QueryCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventArgs e)
 {
     if (e.RowIndex == 0 || e.ColIndex == 0)
     {
         e.Style.Font.Bold = false;
     }
 }
Exemplo n.º 2
0
 //set the cell style settings customization
 void TableModel_QueryCellInfo(object sender, Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventArgs e)
 {
     if (e.RowIndex > this.pivotGridControl1.PivotColumns.Count + (this.pivotGridControl1.PivotCalculations.Count > 1 && this.pivotGridControl1.PivotEngine.ShowCalculationsAsColumns ? 1 : 0) && e.ColIndex > this.pivotGridControl1.PivotRows.Count + (this.pivotGridControl1.PivotEngine.ShowCalculationsAsColumns ? 0 : 1) && e.Style.CellValue != null)
     {
         e.Style.CellType = this.checkBox1.Checked ? "HyperlinkCell" : "TextBox";
         e.Style.Tag      = null;
     }
 }