JamesHanley
Programmer
I have A Button That Calls on a form to retreive found information and place it on the DataGrid.
private void button1_Click(object sender, System.EventArgs e)
{
MessageBox.Show("Runing Report...This May Take Several Minutes.");
DataSet lstDataSet = new DataSet();
sla.HRDataSet(lstDataSet, cboApps.Text);
dataGrid1.DataSource = lstDataSet.Tables[0];
}
I created a new button, that will export everything found found and put it to an .xls file. But the button doesn't recognize what lstDataSet is. this code below is directly under the button code above, on the same form. how come it doesn't recognize what it is?
private void button2_Click(object sender, System.EventArgs e)
{
lstDataSet.WriteXml("testingexport.xls");
}
How do i make button2 understand what lstDataSet is when it is on another button directly above?
Brent Serio
Just Born Designs
Email: brentaserio@cox.net
Aim: CsCheerios
private void button1_Click(object sender, System.EventArgs e)
{
MessageBox.Show("Runing Report...This May Take Several Minutes.");
DataSet lstDataSet = new DataSet();
sla.HRDataSet(lstDataSet, cboApps.Text);
dataGrid1.DataSource = lstDataSet.Tables[0];
}
I created a new button, that will export everything found found and put it to an .xls file. But the button doesn't recognize what lstDataSet is. this code below is directly under the button code above, on the same form. how come it doesn't recognize what it is?
private void button2_Click(object sender, System.EventArgs e)
{
lstDataSet.WriteXml("testingexport.xls");
}
How do i make button2 understand what lstDataSet is when it is on another button directly above?
Brent Serio
Just Born Designs
Email: brentaserio@cox.net
Aim: CsCheerios