private void BorrarCeldas(object parametro) { DataGrid tabla = parametro as DataGrid; if (tabla == null || tabla.CurrentCell == null) { return; } Conductor conductor = tabla.CurrentCell.Item as Conductor; if (conductor == null) { return; } conductor.BorrarValorPorHeader(tabla.CurrentCell.Column.Header.ToString()); HayCambios = true; }