i have a problem with copying my new tabview based on a selection from a griditem the code that i use is:
string selectedcel = Grid_Werk.CurrentRow.Cells[2].Value.ToString();
int tabnumber = Tab_overview.TabPages.Count;
TabPage newtab = new TabPage();
newtab = Tab_Werkbon;
Tab_overview.TabPages.Insert(tabnumber , newtab);
Tab_overview.TabPages[tabnumber].ImageIndex = 7;
Tab_overview.TabPages[tabnumber].Text = selectedcel ;
when i click for the first time this will do the trick but then when i press for another item from the list both of the tabs are empty.