private void button1_Click(object sender, EventArgs e) { MainServiceReference.MainServiceSoapClient client = new MainServiceReference.MainServiceSoapClient("MainServiceSoap"); DataSet d = client.GetReports(ssn_box.Text, 1); d.Tables[0].Columns["first_name"].ColumnName = "Manager's First Name"; d.Tables[0].Columns["last_name"].ColumnName = "Manager's Last Name"; dataGridView1.DataSource = d.Tables[0]; }
private void button1_Click(object sender, EventArgs e) { MainServiceReference.MainServiceSoapClient client = new MainServiceReference.MainServiceSoapClient("MainServiceSoap"); int report_id = Int32.Parse(textBox1.Text); client.Update(report_id); MessageBox.Show("You have approved the expense report!"); dataGridView1.DataSource = client.GetReports(ssn_box.Text, 2).Tables[0]; }