예제 #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);
     }
 }
예제 #2
0
 protected virtual void OnCreateCell(object sender, GridViewCreateCellEventArgs e)
 {
     if (this.CreateCell == null)
     {
         return;
     }
     this.CreateCell(sender, e);
 }
예제 #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);
        }
예제 #4
0
 internal void CallCreateCell(GridViewCreateCellEventArgs e)
 {
     this.OnCreateCell(this.GetDefaultEventSender(), e);
 }