S
scorpion53061
Well as some of you know I was using a tab control for a project I was
building for my boss.
Today he tells me that he wants:
When he switches tabs to be able to switch back and see whatever it was he
was doing on the other tab.
That may not sound like a big thing but I used the same controls for each
tab and then manually cleared the page so he didnt see the same in another
page. (datasource cleared out etc)
This is what I did:
If TabControl1.SelectedIndex = 2 Then
DataGrid1.DataSource = Nothing
DataGrid2.DataSource = Nothing
Label2.Text = ""
Label18.Text = ""
'actions to fill them wiht new values
End If
If TabControl1.SelectedIndex = 1 Then
DataGrid1.DataSource = Nothing
DataGrid2.DataSource = Nothing
Label2.Text = ""
Label18.Text = ""
'actions to fill them with new values
End If
I have to clear it on their arrival other wise they will see the data from
the other page, right?
Is there any way I can retain what they did without being forced to create
different controls on each tab page?
building for my boss.
Today he tells me that he wants:
When he switches tabs to be able to switch back and see whatever it was he
was doing on the other tab.
That may not sound like a big thing but I used the same controls for each
tab and then manually cleared the page so he didnt see the same in another
page. (datasource cleared out etc)
This is what I did:
If TabControl1.SelectedIndex = 2 Then
DataGrid1.DataSource = Nothing
DataGrid2.DataSource = Nothing
Label2.Text = ""
Label18.Text = ""
'actions to fill them wiht new values
End If
If TabControl1.SelectedIndex = 1 Then
DataGrid1.DataSource = Nothing
DataGrid2.DataSource = Nothing
Label2.Text = ""
Label18.Text = ""
'actions to fill them with new values
End If
I have to clear it on their arrival other wise they will see the data from
the other page, right?
Is there any way I can retain what they did without being forced to create
different controls on each tab page?