Beispiel #1
0
        //private void PopulateRows()
        //{
        //    for (int i = 1; i <= 10; i++)
        //    {
        //        DataGridViewRow row =
        //            (DataGridViewRow)dgvResultados.RowTemplate.Clone();

        //        row.CreateCells(dgvResultados, string.Format("City{0}", i),
        //            string.Format("State{0}", i), string.Format("Country{0}", i));

        //        dgvResultados.Rows.Add(row);

        //    }
        //}
        private void actualizar()
        {
            lblRegistros.Text    = "Hay " + p.countRow().ToString() + " Registros";
            lblNroPagina.Text    = "Página " + p.numPag().ToString() + " de " + p.countPag().ToString();
            cmbMaximoPagina.Text = p.limitRow().ToString();
        }