Exemplo n.º 1
0
 private void radGridView1_CreateCell(object sender, Telerik.WinControls.UI.GridViewCreateCellEventArgs e)
 {
     if (e.CellType == typeof(GridGroupContentCellElement))
     {
         e.CellElement = new CustomGridGroupContentCellElement(e.Column, e.Row);
     }
 }
Exemplo n.º 2
0
 protected virtual void OnCreateCell(object sender, GridViewCreateCellEventArgs e)
 {
     if (this.CreateCell == null)
     {
         return;
     }
     this.CreateCell(sender, e);
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 internal void CallCreateCell(GridViewCreateCellEventArgs e)
 {
     this.OnCreateCell(this.GetDefaultEventSender(), e);
 }