Пример #1
0
 private void radGridView1_CreateCell(object sender, GridViewCreateCellEventArgs e)
 {
     if (e.CellType == typeof(GridGroupContentCellElement))
     {
         e.CellElement = new MyGridGroupContentCellElement(e.Column, e.Row);
     }
 }
Пример #2
0
 private void RadGridView1CreateCell(object sender, GridViewCreateCellEventArgs e)
 {
     if (e.CellType == typeof(GridDetailViewCellElement))
     {
         e.CellElement = new CustomDetailViewCellElement(e.Column, e.Row);
     }
 }
Пример #3
0
 void radGridView1_CreateCell(object sender, GridViewCreateCellEventArgs e)
 {
     if (e.CellType == typeof(GridComboBoxCellElement))
     {
         e.CellElement = new MyCombBoxCellElement(e.Column as GridViewDataColumn, e.Row);
     }
 }
Пример #4
0
 void radGridView1_CreateCell(object sender, GridViewCreateCellEventArgs e)
 {
     if (e.CellType == typeof(GridDataCellElement) && (e.Column.Name == "Snacks" || e.Column.Name == "Beverages"))
     {
         e.CellType = typeof(ChartCellElement);
     }
 }
Пример #5
0
 private void radGridView1_CreateCell(object sender, GridViewCreateCellEventArgs e)
 {
     if (e.CellType == typeof(GridRowHeaderCellElement) && e.Row.RowInfo is ExpandableGridViewFilteringRowInfo)
     {
         e.CellType = typeof(GridFilterExpandableCellElement);
     }
 }
 void grdLister_CreateCell(object sender, GridViewCreateCellEventArgs e)
 {
     if (e.CellType == typeof(GridHeaderCellElement) && e.Column.HeaderText == "All")
     {
         e.CellType = typeof(CheckBoxHeaderCell);
     }
 }
Пример #7
0
 private void RadGridView1_CreateCell(object sender, GridViewCreateCellEventArgs e)
 {
     if (e.CellType == typeof(GridSummaryCellElement) && e.Column.Name == "Dosage")
     {
         e.CellElement = new CustomSummaryCell(e.Column, e.Row);
     }
 }
Пример #8
0
 private void GridView_CreateCell(object sender, GridViewCreateCellEventArgs e)
 {
     if (e.CellType == typeof(GridRowHeaderCellElement) && e.Row is GridDataRowElement)
     {
         e.CellType = typeof(SpreadsheetGridRowHeaderCellElement);
     }
 }
Пример #9
0
 void radGridView1_CreateCell(object sender, GridViewCreateCellEventArgs e)
 {
     if (e.Column.Name == "Edit" && (e.Row is GridDataRowElement || e.Row is GridNewRowElement))
     {
         e.CellType    = typeof(CustomCell);
         e.CellElement = new CustomCell(e.Column, e.Row);
     }
 }
Пример #10
0
 private void radGridView1_CreateCell(object sender, GridViewCreateCellEventArgs e)
 {
     if (e.Row is GridDataRowElement)
     {
         if (e.Column.Name == "CustomColumn")
         {
             e.CellType = typeof(CustomInfoCell);
         }
     }
 }
Пример #11
0
 private void RadGridView1_CreateCell(object sender, GridViewCreateCellEventArgs e)
 {
     if (e.CellType == typeof(GridFilterCellElement))
     {
         e.CellElement = new MyGridFilterCellElement((GridViewDataColumn)e.Column, e.Row);
     }
     else if (e.CellType == typeof(GridRowHeaderCellElement))
     {
         e.CellElement = new MyGridRowHeaderCellElement(e.Column, e.Row);
     }
 }
Пример #12
0
 protected override void OnCreateCell(object sender, GridViewCreateCellEventArgs e)
 {
     base.OnCreateCell(sender, e);
     if (e.Column == null)
     {
         return;
     }
     if (_supportEmbeddedControls)
     {
         GridViewDataColumn column = e.Column as GridViewDataColumn;
         if (column != null &&
             column.FieldName == _columnFieldName &&
             column.OwnerTemplate.Equals(_columnTemplate) &&
             e.CellType == typeof(GridDataCellElement))
         {
             e.Column.ReadOnly = true;
             e.CellType        = typeof(CSPropertyGridCellElement);
         }
     }
 }
Пример #13
0
 private void gridOrphans_CreateCell(object sender, GridViewCreateCellEventArgs e)
 {
 }