or
private void radGWOrderSelection_CreateCell(object sender, GridViewCreateCellEventArgs e) { if (e.Column.Name == "Replace") { GridViewCommandColumn dataColumn = (GridViewCommandColumn)e.Column; if (e.Row is GridDataRowElement && dataColumn != null) {
CustomGridDataCell cell = new CustomGridDataCell(e.Column, e.Row); e.CellType = typeof(CustomGridDataCell); e.CellElement = cell; cell.ButtonOne.Visibility = ElementVisibility.Hidden; cell.ButtonClick += new EventHandler(cell_ButtonClick); cell.ButtonOne.Visibility = ElementVisibility.Hidden; cell.ButtonClick += new EventHandler(cell_ButtonClick); cell.CommandButton.Dispose(); } } }

