示例#1
0
 void CargarFamilia()
 {
     cbFamilia.Refresh();
     cbFamilia.DataSource    = Familia.GetAll();
     cbFamilia.DisplayMember = "Descripcion";
     cbFamilia.ValueMember   = "ID";
 }
示例#2
0
 private void CargarFamilia()
 {
     cbFamilia.Refresh();
     cbFamilia.DataSource    = Familia.GetAll();
     cbFamilia.DisplayMember = "Descripcion";
     cbFamilia.ValueMember   = "Id";
     CargarSeccion();
 }
示例#3
0
        private void LlenarFamilia()
        {
            this.dataGridViewFamilia.AutoGenerateColumns = false;
            int index = this.dataGridViewFamilia.Columns.Add("Codigo", "Codigo");

            this.dataGridViewFamilia.Columns[index].DataPropertyName = "Codigo";
            this.dataGridViewFamilia.Columns[index].Width            = 70;
            index = this.dataGridViewFamilia.Columns.Add("Descripcion", "Descripcion");
            this.dataGridViewFamilia.Columns[index].DataPropertyName = "Descripcion";
            this.dataGridViewFamilia.Columns[index].Width            = 150;
            this.bindingSource1.DataSource      = Familia.GetAll();
            this.dataGridViewFamilia.DataSource = this.bindingSource1;
        }
示例#4
0
 void CargarFamilias()
 {
     dgvFamilias.DataSource = Familia.GetAll();
 }