Пример #1
0
        private void MostrarCb()
        {
            NCausa obj = new NCausa();

            cbRol.DataSource    = obj.Listar();
            cbRol.DisplayMember = "ROL";
            cbRol.ValueMember   = "ROL";
        }
Пример #2
0
        private void Mostrar()
        {
            NCausa obj = new NCausa();

            dataListado.DataSource          = obj.Listar();
            dataListado.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
            dataListado.Columns[6].Visible  = false;
            dataListado.Columns[7].Visible  = false;
            dataListado.Columns[8].Visible  = false;
        }