Skip to content

Instantly share code, notes, and snippets.

@NikkiBuck
Created November 11, 2012 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NikkiBuck/4054148 to your computer and use it in GitHub Desktop.
Save NikkiBuck/4054148 to your computer and use it in GitHub Desktop.
private void searchButton_Click(object sender, EventArgs e)
{
try
{
DataSet dataSet = new DataSet();
dataSet = BusinessEntities.PermitData.GetApplications(firstNameTextBox.Text, lastNameTextBox.Text);
searchJobsByNameDataGridView.DataSource = dataSet.Tables[0];
}
catch (Exception ex)
{
jobsByNameStatusLabel.Text = ex.ToString();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment