Ejemplo n.º 1
0
        private void configurarGrilla(DataSet ds)
        {
            dgvRendiciones.Rows.Clear();
            List <Rendicion> rendiciones = new List <Rendicion>();

            foreach (DataRow row in ds.Tables[0].Rows)
            {
                Rendicion rend = new Rendicion();
                rend.DataRowToObject(row);
                rendiciones.Add(rend);

                dgvRendiciones.Rows.Add(rend.Chofer, rend.nro_Rendicion, rend.Turno, rend.Fecha, rend.Total);
            }
        }