private DataExtensionParent GetDataExtensionParent()
        {
            var entidad = new DataExtensionParent();
            if (CurrentDataExtensionParent!=null)
                entidad.Id = CurrentDataExtensionParent.Id;

            entidad.Nombre = txtListNombre.Text;
            entidad.Descripcion = txtListDescripcion.Text;

            foreach (DataGridViewRow row in dgvDataExtension.DataGridView.Rows)
            {
                var dataExtensionHead = row.Cells[0].Tag as DataExtensionHead;
                if (dataExtensionHead == null) continue;

                entidad.DataExtensionHeadList.Add(dataExtensionHead);
            }

            return entidad;
        }
 private void dataExtensionListDataGridView_CellEnter(object sender, DataGridViewCellEventArgs e)
 {
     if (dataExtensionListBindingSource.Current != null)
     {
         CurrentDataExtensionParent = (DataExtensionParent)dataExtensionListBindingSource.Current;
         estadoActual = EstadoActual.Normal;
         splitContainerTotal.Visible = true;
         TsMenu.Visible = true;
         CargarDataExtensionHead(CurrentDataExtensionParent.Id);
     }
     else
     {
         splitContainerTotal.Visible = false;
         TsMenu.Visible = false;
     }
 }