示例#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)
 {
 }