Esempio n. 1
0
        private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            int    i    = e.RowIndex;
            Заявки medI = bdApp2[i];

            bdMedApp2 = new BindingList <Медикаменты_в_заявке>(medI.GetMed_App());
            dataGridView2.DataSource       = bdMedApp2;
            dataGridView2.Columns[0].Width = 300;
            dataGridView2.Columns[1].Width = 140;
        }
Esempio n. 2
0
        private void dataGridApp_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            int i = e.RowIndex;

            Заявки medA = bdApp[i];

            bdMedApp = new BindingList <Медикаменты_в_заявке>(medA.GetMed_App());
            dataGridMedApp.DataSource       = bdMedApp;
            dataGridMedApp.Columns[0].Width = 300;
            dataGridMedApp.Columns[1].Width = 160;

            dataGridMedApp.Columns[0].HeaderText = "Наименование";
            dataGridMedApp.Columns[1].HeaderText = "Количество";
        }
Esempio n. 3
0
        private void dataGridApp_SelectionChanged(object sender, EventArgs e)
        {
            try
            {
                int i = dataGridApp.CurrentCell.RowIndex;

                Заявки medA = bdApp[i];

                bdMedApp = new BindingList <Медикаменты_в_заявке>(medA.GetMed_App());
                dataGridMedApp.DataSource       = bdMedApp;
                dataGridMedApp.Columns[0].Width = 300;
                dataGridMedApp.Columns[1].Width = 160;

                dataGridMedApp.Columns[0].HeaderText = "Наименование";
                dataGridMedApp.Columns[1].HeaderText = "Количество";
            }
            catch (NullReferenceException)
            {
            }
        }