c# winform datagridview cell click to TabControl 页面
c# winform datagridview cell click to TabControl Page
我想实现一个可以
的功能
click on the datagridview's cell/columns than will switch to Tab page
有什么想法吗?
喜欢这些图片
pic one is the total result on Tab 1 and Tab2, when i click on cell/column
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
// check if you are clicking on needed column
// and focus the tab
if (e.ColumnIndex == 1) tabControl1.SelectedTab = tabPage2;
}
我想实现一个可以
的功能click on the datagridview's cell/columns than will switch to Tab page
有什么想法吗?
喜欢这些图片
pic one is the total result on Tab 1 and Tab2, when i click on cell/column
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
// check if you are clicking on needed column
// and focus the tab
if (e.ColumnIndex == 1) tabControl1.SelectedTab = tabPage2;
}