hi,
I have a form e.g. Form1 , which displays a datagridview.
1) on form load, the datagridview doesnt have any data
2) the user clicks on a button called filter, this opens a form where the user can specify parameters to filter the data by
3) this form calls a setData() in Form1, which fills the dataset with the data
this works fine
if i click on a button called controlPanel it launches another form and hides this
e.g. dim cp as new ControlPanel()
this.hide()
cp.show()
On the controlpanel i have a button that links to form1. if i click on it
e.g dim frm as new Form1()
this.hide()
frm.show()
it redisplays Form1 but without any data in the datagridview.
I think the problem is that since i am creating a new instance for Form1 it comes up with the blank Form1. Is there a way to redisplay Form1 so that it retains the data that was displayed last, without having to retrieve the data from the database.
thanks in advance.
abhi
I have a form e.g. Form1 , which displays a datagridview.
1) on form load, the datagridview doesnt have any data
2) the user clicks on a button called filter, this opens a form where the user can specify parameters to filter the data by
3) this form calls a setData() in Form1, which fills the dataset with the data
this works fine
if i click on a button called controlPanel it launches another form and hides this
e.g. dim cp as new ControlPanel()
this.hide()
cp.show()
On the controlpanel i have a button that links to form1. if i click on it
e.g dim frm as new Form1()
this.hide()
frm.show()
it redisplays Form1 but without any data in the datagridview.
I think the problem is that since i am creating a new instance for Form1 it comes up with the blank Form1. Is there a way to redisplay Form1 so that it retains the data that was displayed last, without having to retrieve the data from the database.
thanks in advance.
abhi