Example #1
0
        private void Grid_Load()
        {
            _BD.sotr_void();
            dataGridView1.DataSource            = Program.STR;
            dataGridView1.Columns[0].Visible    = false;
            dataGridView1.Columns[1].Visible    = true;
            dataGridView1.Columns[1].Width      = 135;
            dataGridView1.Columns[1].HeaderText = "Фамилия";
            dataGridView1.Columns[2].Visible    = true;
            dataGridView1.Columns[2].Width      = 135;
            dataGridView1.Columns[2].HeaderText = "Имя";
            dataGridView1.Columns[3].Visible    = true;
            dataGridView1.Columns[3].Width      = 135;
            dataGridView1.Columns[3].HeaderText = "Отчество";
            dataGridView1.Columns[4].Visible    = true;
            dataGridView1.Columns[4].Width      = 100;
            dataGridView1.Columns[4].HeaderText = "Время прихода";
            dataGridView1.Columns[5].Visible    = true;
            dataGridView1.Columns[5].Width      = 100;
            dataGridView1.Columns[5].HeaderText = "Время ухода";

            //_BD.sotr_void();
            ////_BD.paspartu_articul_void();
            ////_BD.slip_articul_void();
            //dataGridView1.DataSource = Program.STR;
            //dataGridView1.Columns[0].HeaderText = "Артикул";
            //dataGridView1.Columns[1].HeaderText = "Остаток";
            //dataGridView1.Columns[2].HeaderText = "Цена";
            //dataGridView1.Columns[3].HeaderText = "Количество";
        }
Example #2
0
 private void Grid_Load()
 {
     _BD.sotr_void();
     dataGridView1.DataSource            = Program.STR;
     dataGridView1.Columns[0].Visible    = false;
     dataGridView1.Columns[1].Visible    = true;
     dataGridView1.Columns[1].Width      = 135;
     dataGridView1.Columns[1].HeaderText = "Фамилия";
     dataGridView1.Columns[2].Visible    = true;
     dataGridView1.Columns[2].Width      = 135;
     dataGridView1.Columns[2].HeaderText = "Имя";
     dataGridView1.Columns[3].Visible    = true;
     dataGridView1.Columns[3].Width      = 135;
     dataGridView1.Columns[3].HeaderText = "Отчество";
     dataGridView1.Columns[4].Visible    = true;
     dataGridView1.Columns[4].Width      = 100;
     dataGridView1.Columns[4].HeaderText = "Время прихода";
     dataGridView1.Columns[5].Visible    = true;
     dataGridView1.Columns[5].Width      = 100;
     dataGridView1.Columns[5].HeaderText = "Время ухода";
     _BD.polz_void();
     dataGridView2.DataSource            = Program.PLZ;
     dataGridView2.Columns[0].Visible    = false;
     dataGridView2.Columns[1].Visible    = true;
     dataGridView2.Columns[1].Width      = 135;
     dataGridView2.Columns[1].HeaderText = "Фамилия";
     dataGridView2.Columns[2].Visible    = true;
     dataGridView2.Columns[2].Width      = 135;
     dataGridView2.Columns[2].HeaderText = "Имя";
     dataGridView2.Columns[3].Visible    = true;
     dataGridView2.Columns[3].Width      = 135;
     dataGridView2.Columns[3].HeaderText = "Отчество";
     dataGridView2.Columns[4].Visible    = true;
     dataGridView2.Columns[4].Width      = 100;
     dataGridView2.Columns[4].HeaderText = "Пароль";
     dataGridView2.Columns[5].Visible    = true;
     dataGridView2.Columns[5].Width      = 100;
     dataGridView2.Columns[5].HeaderText = "Доступ";
 }