给dataGridView的IRegisterID增加模板列然后 放一个hyperlink, 在dataGridView绑定数据的时候给hyperlink的链接增加参数,该参数的值就是IDiagnoseCode的值
e.item.cells(4).text
// 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();
}
}