J
john pp nn
Guest
Hi folks,
I have a tabControl on my form.
When a user clicks a button a new tabPage (with a datagridview) is added to the TabControl. I give the tabPage and its grid their own unique names. This all works well.
Now I could have 6 tab pages on the Tab Control each with their own grid.
When a user clicks another button, I need a way of accessing the grid of the selected tab of the TabControl.
Normally, when I work with grids, they are added at design time and I know its name and write code for it explicitly.
How can I work a control that was created on the fly?
Hope his makes sense!!
J
jppnn
Continue reading...
I have a tabControl on my form.
When a user clicks a button a new tabPage (with a datagridview) is added to the TabControl. I give the tabPage and its grid their own unique names. This all works well.
Now I could have 6 tab pages on the Tab Control each with their own grid.
When a user clicks another button, I need a way of accessing the grid of the selected tab of the TabControl.
Normally, when I work with grids, they are added at design time and I know its name and write code for it explicitly.
How can I work a control that was created on the fly?
Hope his makes sense!!
J
jppnn
Continue reading...