标签:obj 第一个 private 选中 控件 exchange selected dex tab
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
{
if (tabControl1.SelectedIndex == 1&&listView1.Items.Count>0)
{
//默认选中第一行数据
listView1.Items[0].Selected = true;
listView1.Select();
}
}
标签:obj 第一个 private 选中 控件 exchange selected dex tab
原文地址:https://www.cnblogs.com/sharestone/p/9019181.html