G
Guest
I am using the following code:
public DataView CreateReportDataSource()
{
string reportConnect = "Provider=\"MSDAORA.1\";" + GetConnectionString()
+ "";
string reportSelect = Session["sqlSelect"].ToString();
oda = new OleDbDataAdapter(reportSelect, reportConnect);
DataSet ds = new DataSet();
oda.Fill(ds, "report");
DataView report = ds.Tables["report"].DefaultView;
countLabel.Text = report.Count + " Total Work Orders";
countLabel.Visible = true;
return report;
}
The reportSelect statement returns a field named wo16. I want to interate
through the dataset and when wo16 = null I wan tot replace it with "NO". How
do I alter my code to accomplish this task?
Thanks,
Dave
public DataView CreateReportDataSource()
{
string reportConnect = "Provider=\"MSDAORA.1\";" + GetConnectionString()
+ "";
string reportSelect = Session["sqlSelect"].ToString();
oda = new OleDbDataAdapter(reportSelect, reportConnect);
DataSet ds = new DataSet();
oda.Fill(ds, "report");
DataView report = ds.Tables["report"].DefaultView;
countLabel.Text = report.Count + " Total Work Orders";
countLabel.Visible = true;
return report;
}
The reportSelect statement returns a field named wo16. I want to interate
through the dataset and when wo16 = null I wan tot replace it with "NO". How
do I alter my code to accomplish this task?
Thanks,
Dave