C sharp - Ayuda con un formulario!

 
Vista:

Ayuda con un formulario!

Publicado por Unknow (1 intervención) el 29/09/2015 05:35:49
Hola Voy saliendo de una catedra en la que vimos una introduccion a los formularios, estabamos construyendo un formulario que tiene: IdEstudiante, Nombre, Apellido, FechaDeNacimiento, Direccion y un datagridview, realizamos la opcion agregar y de tarea nos han dejado completar las opciones modificar y eliminar:

LA OPCION AGREGAR ES LA SIGUIENTE:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
private void Guardar()
        {
 
            try
            {
                dtgvEstudiantes.Rows.Add();
                dtgvEstudiantes.Rows[0].Cells["cIDEstudiante"].Value = txtIDEstudiante.Text;
                dtgvEstudiantes.Rows[0].Cells["cNombres"].Value = txtNombres.Text;
                dtgvEstudiantes.Rows[0].Cells["cApellidos"].Value = txtApellidos.Text;
                dtgvEstudiantes.Rows[0].Cells["cDireccion"].Value = txtDireccion.Text;
                if (rdbFemenino.Checked)
                {
                    dtgvEstudiantes.Rows[0].Cells["cGenero"].Value = "FEMENINO";
                }
                else
                {
                    dtgvEstudiantes.Rows[0].Cells["cGenero"].Value = "MASCULINO";
                }
                dtgvEstudiantes.Rows[0].Cells["cFechaNac"].Value = mcdFechaNac.SelectionStart.ToString();
                MessageBox.Show("El estudiante se ha ingresado al sistema correctamente", "Confirmación", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            catch
            {
                MessageBox.Show("Ocurrio un error al intentar agregar al estudiante", "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
 
            Restablecer();
 
        }

Alguna idea que me oriente a empezar con eliminar y modificar?
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil

Ayuda con un formulario!

Publicado por Cristian (7 intervenciones) el 27/11/2015 03:05:06
Por que no exportar tus datos del datagridview a Excel?
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar