private void BILLS_Load(object sender, EventArgs e) { bill = new Bilssset(connectionString, sqlcomand, "MED", "bill"); dataGridView1.DataSource = bill.GetDataView(); this.dataGridView1.Width = this.groupBox1.Width - 10; this.dataGridView1.Height = (Height - this.groupBox1.Height) - 50; }
private void button4_Click(object sender, EventArgs e) { bill = new Bilssset(connectionString, sqlcomand, "MED", "bill"); dataGridView1.DataSource = bill.GetDataView(); }