111,126
社区成员
发帖
与我相关
我的任务
分享
private void dGV_CellClicked(object sender, DataGridViewCellEventArgs e)
{
//请高手在此给出代码,谢啦~!
}
comboBox.Items .Add= dgv.Rows[dgv.CurrentRow.Index].Cells["otherID"].Value.ToString();
private void dGV_CellClicked(object sender, DataGridViewCellEventArgs e)
{
int rows = dataGridView1.indexrows;//获得选种行的索引
string str = dataGridView1.rows[rows].cells[num].text;//获取第rows行的索引为num列的值
comboBox1.Items.Add(str);
}