// dgvFeeManagePay为dataGridView,_selectedRowIndex当前行行号
DataGridViewRow currentRow = this.dgvFeeManagePay.Rows[this._selectedRowIndex];
if (currentRow != null)
{
// 实体类
_feeManagePay = new FeeManagePay();
if (!string.IsNullorEmpty(currentRow.Cells["PayID"].Value + ""))
{
// PaIDiagnoseCode
_ feeManagePay.PaIDiagnoseCode = currentRow.Cells["PayID"].Value.ToString();
}
}