Hello all,
I have a form with a TabControl. The additional tabs are being opened via a button located in a datagrid control.
In the tabpage that opens, I want to title that tab with the contents of the column of the button.
Example:
The column is the "CustomerID". When that button is clicked, I want to have THAT customer's CustomerID as the tabpage title.
I know that I have to use the |tabpage.Text = ""| to title that tab. But, how, progrmatically, can this be done, perhaps pulling from the database field directly at run time?
Any help would be greatly appreciated!
Thanks,
Carlos
I have a form with a TabControl. The additional tabs are being opened via a button located in a datagrid control.
In the tabpage that opens, I want to title that tab with the contents of the column of the button.
Example:
The column is the "CustomerID". When that button is clicked, I want to have THAT customer's CustomerID as the tabpage title.
I know that I have to use the |tabpage.Text = ""| to title that tab. But, how, progrmatically, can this be done, perhaps pulling from the database field directly at run time?
Any help would be greatly appreciated!
Thanks,
Carlos