Exemplo n.º 1
0
        //bool IsTheSameCellValue(int column, int row)
        //{
        //    DataGridViewCell cell1 = dgReparto[column, row];
        //    DataGridViewCell cell2 = dgReparto[column, row - 1];
        //    if (cell1.Value == null || cell2.Value == null)
        //    {
        //        return false;
        //    }
        //    return cell1.Value.ToString() == cell2.Value.ToString();
        //}

        private void frmReparto_Load(object sender, EventArgs e)
        {
            dgReparto.AutoGenerateColumns = false;
            List <Reparto> lista = new List <Reparto>();

            try
            {
                lista = RepartosBD.GetLista();
                MostrarDatosGrilla(lista);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error al cargar los datos", ex.Message);
            }
        }
Exemplo n.º 2
0
        private void Actualizar()
        {
            List <Reparto> listaUpdated = RepartosBD.GetLista();

            MostrarDatosGrilla(listaUpdated);
        }