private void SfDataGrid_DrawCell(object sender, Syncfusion.WinForms.DataGrid.Events.DrawCellEventArgs e)
 {
     if (e.Column.MappingName == "ShipCountry" && string.IsNullOrEmpty(e.DisplayText))
     {
         e.DisplayText = "Select Item";
     }
 }
Esempio n. 2
0
 private void SfDataGrid_DrawCell(object sender, Syncfusion.WinForms.DataGrid.Events.DrawCellEventArgs e)
 {
     if (sfDataGrid.ShowRowHeader && e.RowIndex > 0)
     {
         if (e.ColumnIndex == 0)
         {
             e.DisplayText = (e.RowIndex - 1).ToString();
         }
     }
 }
 private void SfDataGrid1_DrawCell(object sender, Syncfusion.WinForms.DataGrid.Events.DrawCellEventArgs e)
 {
     if ((e.DataRow as DataRowBase).RowType == RowType.StackedHeaderRow)
     {
         if (e.CellValue.ToString() == "Order Details")
         {
             e.Style.BackColor = Color.DarkCyan;
             e.Style.TextColor = Color.White;
         }
         if (e.CellValue.ToString() == "Customer Details")
         {
             e.Style.BackColor = Color.LightCyan;
         }
         if (e.CellValue.ToString() == "City Details")
         {
             e.Style.BackColor = Color.DarkGray;
             e.Style.TextColor = Color.White;
         }
     }
 }
Esempio n. 4
0
 private void dgPiutang_DrawCell(object sender, Syncfusion.WinForms.DataGrid.Events.DrawCellEventArgs e)
 {
 }