private void radGridView1_CreateCell(object sender, Telerik.WinControls.UI.GridViewCreateCellEventArgs e) { if (e.CellType == typeof(GridGroupContentCellElement)) { e.CellElement = new CustomGridGroupContentCellElement(e.Column, e.Row); } }
protected virtual void OnCreateCell(object sender, GridViewCreateCellEventArgs e) { if (this.CreateCell == null) { return; } this.CreateCell(sender, e); }
public virtual GridCellElement CreateCell(GridViewColumn column) { GridViewCreateCellEventArgs e = new GridViewCreateCellEventArgs(this, column, this.GetCellType(column)); this.GridViewElement.CallCreateCell(e); GridCellElement gridCellElement = (GridCellElement)null; if (e.CellElement != null) { gridCellElement = e.CellElement; } else if ((object)e.CellType != null) { gridCellElement = Activator.CreateInstance(e.CellType, (object)column, (object)this) as GridCellElement; } return(gridCellElement); }
internal void CallCreateCell(GridViewCreateCellEventArgs e) { this.OnCreateCell(this.GetDefaultEventSender(), e); }