int index = dataGridView_main.CurrentRow.Index; //取得选中行的索引
int pe_batch_id = Convert.ToInt32(dataGridView_main.Rows[index].Cells["pe_batch_id"].Value); //获取单元格列名为‘pe_batch_id’的值
int index = dataGridView_main.CurrentRow.Index; //取得选中行的索引
int pe_batch_id = Convert.ToInt32(dataGridView_main.Rows[index].Cells["pe_batch_id"].Value); //获取单元格列名为‘pe_batch_id’的值
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。