我們有3列一個DataGridView: InvoicedOn,PaidOn及金額找出一個DataGridView的當前行的特定列的值
在MouseDown事件是這行代碼需要被固定:
MsgBox(DataGridViewPayments.Item("Amount", DataGridViewPayments.CurrentRow.Index), "")
我們試圖找出curent行的Amount列中的值。
我們還收到此錯誤信息:
Conversion from string "" to type 'Integer' is not valid.
你能告訴我如何解決這個MSGBOX所以它會顯示出價值?
感謝您的有用代碼和快速回復。我會用它。 –