How to create a tab control with a dynamic number of tabs in Visual Studio C#?
I've got a database with a table customers
. I need to create a form that would show tabs with the first letters of customers' last name (only those first letters, for which there are entries in the table should be present). Each tab should contain a DataGrid control with the corresponding customers. I connect to the database using DataSet.
Where should I insert the code snippet that would generate such tabs? Can I do that with the existing tab control or should I create a custom control?