摘要:
private void button1_Click(object sender, EventArgs e) { string mystr = button1.Text; if (mystr == "隐藏最后一列") { //当前列 dataGridView1.Columns[5].Visible 阅读全文
摘要:
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { //获取行号索引 //第一种方式 //int row = e.RowIndex + 1; //int col = e.ColumnIn 阅读全文