السلام عليكم ورحمة الله وبركاته ..
عندي مشكلة في التشك بوكس داخل الجريد فيو ..
المشكلة عبارة عن رسالة الخطأ هذه :
اقتباسIndex was out of range. Must be non-negative and less than the size of the collection.Parameter name: index
وهذا الكود :
For c = 0 To grvLen - 1
chkbox = grvPrdByType.Rows(c).FindControl("CheckBox1" )
If chkbox.Checked = True Then
.
.
.
.
.
End if
Nextبالتحديد الخطأ في هذا السطر :
chkbox = grvPrdByType.Rows(c).FindControl("CheckBox" )