private void ubEliminar_Click(object sender, EventArgs e)
 {
     if (gridEXValores.SelectedItems.Count > 0)
     {
         gridEXValores.Delete();
         gridEXValores.Refresh();
     }
 }
 private void btnEliminar_Click(object sender, EventArgs e)
 {
     gridEx.AllowDelete = Janus.Windows.GridEX.InheritableBoolean.True;
     if (gridEx.SelectedItems.Count == 1)
     {
         int index = gridEx.SelectedItems[0].Position;
         if (MessageBox.Show("Está seguro que desea Eliminar la variable seleccionada", "Advertencia", System.Windows.Forms.MessageBoxButtons.OKCancel, System.Windows.Forms.MessageBoxIcon.Question).Equals(DialogResult.OK))
         {
             _uiController.DeleteVariableSeleccionada();
             gridEx.Delete();
         }
     }
     gridEx.AllowDelete = Janus.Windows.GridEX.InheritableBoolean.False;
 }