Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            DataGridViewButtonColumn clm = new DataGridViewButtonColumn();

            clm.Name       = "cot1";
            clm.HeaderText = "cot1";
            this.dataGridView1.Columns.Add(clm);
            string madg = textBox1.Text;

            dataGridView1.DataSource = dg.searchDatamuon(madg);
        }
Ejemplo n.º 2
0
Archivo: CTDG.cs Proyecto: NTPac/lms
 private void load()
 {
     dt                   = dg.searchData(iD);
     label1.Text          = dt.Rows[0][0].ToString();
     label3.Text          = dt.Rows[0][1].ToString();
     label5.Text          = dt.Rows[0][2].ToString();
     label16.Text         = dt.Rows[0][3].ToString();
     label6.Text          = dt.Rows[0][4].ToString();
     label8.Text          = dt.Rows[0][6].ToString();
     label10.Text         = dt.Rows[0][5].ToString();
     label12.Text         = dt.Rows[0][7].ToString();
     label14.Text         = dt.Rows[0][8].ToString();
     pictureBox1.Image    = Image.FromFile(dt.Rows[0][9].ToString());
     pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
     a = dg.searchDatamuon(iD);
     dataGridView1.DataSource = a;
 }