Hi,
I test on my side. Unfortunately, I am not able to reproduce this issue. I think I may miss something.
Could you please show us your code?
I use the following code. Run and select the third page. The first column is hided.
DataTable dt01 = new DataTable();
private void Form3_Load(object sender, EventArgs e)
{
// first dispaly page is the first page
tabControl1.SelectedIndex = 0;
DataGridView dataGridView01 = new DataGridView();
// add datagridview to the page 3
tabControl1.TabPages[2].Controls.Add(dataGridView01);
dt01.Columns.Add("col01");
dt01.Columns.Add("col02");
dt01.Columns.Add("col03");
dataGridView01.DataSource = dt01;
dataGridView01.Columns[0].Visible = false;
}
Best regards,
Ling Wang
Please remember to click “Mark as Answer�on the post that helps you, and to click “Unmark as Answer�if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.