void Model_QueryCellInfo(object sender, Syncfusion.UI.Xaml.CellGrid.Styles.GridQueryCellInfoEventArgs e)
 {
     if (e.Cell.RowIndex == 0 && e.Cell.ColumnIndex == 0)
     {
         return;
     }
     if (e.Cell.RowIndex == 0)
     {
         e.Style.CellValue           = e.Cell.ColumnIndex;
         e.Style.Font.FontWeight     = Windows.UI.Text.FontWeights.Bold;
         e.Style.VerticalAlignment   = VerticalAlignment.Center;
         e.Style.HorizontalAlignment = HorizontalAlignment.Center;
     }
     else if (e.Cell.ColumnIndex == 0)
     {
         e.Style.CellValue           = e.Cell.RowIndex;
         e.Style.Font.FontWeight     = Windows.UI.Text.FontWeights.Bold;
         e.Style.VerticalAlignment   = VerticalAlignment.Center;
         e.Style.HorizontalAlignment = HorizontalAlignment.Center;
     }
     else
     {
         e.Style.CellValue = String.Format("({0} , {1})", e.Cell.RowIndex, e.Cell.ColumnIndex);
     }
 }
 private void Model_QueryCellInfo(object sender, Syncfusion.UI.Xaml.CellGrid.Styles.GridQueryCellInfoEventArgs e)
 {
     if (e.Cell.RowIndex == 0 || e.Cell.ColumnIndex == 0)
     {
         e.Style.Background = new SolidColorBrush(Color.FromArgb(15, 0, 0, 0));
     }
 }
 private void Model_QueryCellInfo(object sender, Syncfusion.UI.Xaml.CellGrid.Styles.GridQueryCellInfoEventArgs e)
 {
     e.Style.CellValue = string.Format("R{0}:C{1}", e.Cell.RowIndex, e.Cell.ColumnIndex);
     if (e.Cell.ColumnIndex == 2)
     {
         e.Style.Background = new SolidColorBrush(Windows.UI.Color.FromArgb(255, 90, 90, 90));
     }
 }
Exemple #4
0
 private void Model_QueryCellInfo(object sender, Syncfusion.UI.Xaml.CellGrid.Styles.GridQueryCellInfoEventArgs e)
 {
     if (e.Cell.RowIndex == 0 && e.Cell.ColumnIndex == 0)
     {
         return;
     }
     else if (e.Cell.RowIndex == 0)
     {
         e.Style.CellValue           = GridRangeInfo.GetAlphaLabel(e.Cell.ColumnIndex);
         e.Style.HorizontalAlignment = HorizontalAlignment.Center;
     }
     else if (e.Cell.ColumnIndex == 0)
     {
         e.Style.CellValue           = e.Cell.RowIndex;
         e.Style.HorizontalAlignment = HorizontalAlignment.Center;
     }
 }
Exemple #5
0
 private void Model_QueryCellInfo(object sender, Syncfusion.UI.Xaml.CellGrid.Styles.GridQueryCellInfoEventArgs e)
 {
     if (e.Cell.RowIndex == 0 || e.Cell.ColumnIndex == 0)
     {
         e.Style.Background          = new SolidColorBrush(Color.FromArgb(15, 0, 0, 0));
         e.Style.HorizontalAlignment = HorizontalAlignment.Center;
     }
     if (e.Cell.RowIndex == 0 && e.Cell.ColumnIndex == 0)
     {
         return;
     }
     if (e.Cell.RowIndex == 0)
     {
         e.Style.CellValue = e.Cell.ColumnIndex;
     }
     else if (e.Cell.ColumnIndex == 0)
     {
         e.Style.CellValue = e.Cell.RowIndex;
     }
 }
Exemple #6
0
 private void Model_QueryCellInfo(object sender, Syncfusion.UI.Xaml.CellGrid.Styles.GridQueryCellInfoEventArgs e)
 {
     if (e.Cell.RowIndex > 0 && e.Cell.ColumnIndex > 0)
     {
         if (e.Cell.ColumnIndex == 1)
         {
             e.Style.CellValue = name1[e.Cell.RowIndex % 6];
         }
         else if (e.Cell.ColumnIndex == 2)
         {
             e.Style.CellValue = country[e.Cell.RowIndex % 6];
         }
         else if (e.Cell.ColumnIndex == 3)
         {
             e.Style.CellValue = city[e.Cell.RowIndex % 6];
         }
         else if (e.Cell.ColumnIndex == 4)
         {
             e.Style.CellValue = scountry[e.Cell.RowIndex % 6];
         }
         else if (e.Cell.ColumnIndex == 5)
         {
             e.Style.CellValue = DateTime.Now;
         }
     }
     if (e.Cell.ColumnIndex == 0 && e.Cell.RowIndex > 0)
     {
         e.Style.CellValue = e.Style.RowIndex;
     }
     if (e.Cell.RowIndex == 0 && e.Cell.ColumnIndex > 0)
     {
         e.Style.CellValue = columnNames[e.Cell.ColumnIndex - 1];
     }
     if (e.Cell.RowIndex == 0 || e.Style.ColumnIndex == 0)
     {
         e.Style.HorizontalAlignment = HorizontalAlignment.Center;
         e.Style.Font.FontFamily     = new FontFamily("Segoe UI");
         e.Style.Font.FontSize       = 14f;
         e.Style.Background          = new SolidColorBrush(Colors.LightGray);
     }
 }
Exemple #7
0
 private void Model_QueryCellInfo(object sender, Syncfusion.UI.Xaml.CellGrid.Styles.GridQueryCellInfoEventArgs e)
 {
     if (e.Cell.RowIndex == 0)
     {
         if (e.Cell.ColumnIndex > 0)
         {
             e.Style.CellValue = e.Cell.ColumnIndex;
         }
     }
     else if (e.Cell.RowIndex > 0)
     {
         if (e.Cell.ColumnIndex == 0)
         {
             e.Style.CellValue = e.Cell.RowIndex;
         }
         else if (e.Cell.ColumnIndex > 0)
         {
             e.Style.CellValue = String.Format("{0}/{1}", e.Cell.RowIndex, e.Cell.ColumnIndex);
         }
     }
 }