摘要: private void button1_Click(object sender, EventArgs e) { string mystr = button1.Text; if (mystr == "隐藏最后一列") { //当前列 dataGridView1.Columns[5].Visible 阅读全文
posted @ 2018-11-09 08:36 锦大大的博客呀! 阅读(130) 评论(0) 推荐(0) 编辑
摘要: private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { //获取行号索引 //第一种方式 //int row = e.RowIndex + 1; //int col = e.ColumnIn 阅读全文
posted @ 2018-11-09 08:15 锦大大的博客呀! 阅读(215) 评论(0) 推荐(0) 编辑