I have a tab control with three tabs and I have added a datagridview to each of the first two tabs at design time. Programatically, when the second tab is selected, I am attempting to create columns and add them to the datagridview on the second tab. However, they show up in the datagridview on the first tab. I can't figure out what I'm doing wrong; if I step through the code I can see that the selected tab is the correct tab (the second one). Any suggestions?