我有一個datagridview(未綁定)。字段是姓名,家庭姓名和電話號碼以及複選框。在VB.Net中捕獲DataGridView複選框的值
該DataGridView中有10行。
有一個OK按鈕
我需要得到哪些行用戶已籤顯示的消息。用戶單擊確定按鈕時應顯示消息。可能有幾條消息,逐一檢查每一行,循環。
我無法獲得此消息。我在OK按鈕中嘗試了以下代碼:
Dim strCB As String = dgvChooseQs.Rows(0).Cells(3).Value.ToString
單元格(3)是我的複選框。不要考慮行(0),目前我只是檢查第0行的值。
感謝您的幫助。
Furqan