如何得到DataGridView当前记录的所有值
//绑定双击单元格事件
private void DgvDataBackup_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
//得到当前激活单元格的值
TxtTaskName.Text = DgvDataBackup.CurrentCell.Value.ToString();
//得到当前激活行指定列的值
TxtTaskName.Text = DgvDataBackup.CurrentRow.Cells["ColTaskName"].Value.ToString();
}