Hi!
With this code below I can find one record on my "last_name" column. But there is a think I would like to learn that until now I didnt. I want to pull out this data I on a report builder.
I already have the bascis to create and save a report from report builder. Then I want to know how to generate from these codes?
With this code below I can find one record on my "last_name" column. But there is a think I would like to learn that until now I didnt. I want to pull out this data I on a report builder.
I already have the bascis to create and save a report from report builder. Then I want to know how to generate from these codes?
private void btnFind_Click(object sender, EventArgs e)
string searchFor = textBox5.Text;
int results = 0;
DataRow[] returnedRows;
returnedRows = ds1.Tables["Workers"].Select("last_name='" + searchFor + "'");
results = returnedRows.Length;
if (results > 0)
{
DataRow dr1;
dr1 = returnedRows[0];
MessageBox.Show(dr1[1].ToString() + " " + dr1[2].ToString());
}
else
{
MessageBox.Show("No such Record");
}
}
}
}