Public ucgrid as DataGridView
For Each cntl As Control In CurrentUCVisible.Controls If TypeOf (cntl) Is DataGridView Then ucgrid = cntl For i = 2 To NumFeatures For j = 1 To i - 1 MsgBox(ucgrid.Rows(i - 1).Cells(j - 1).Value) 'Valid data entries here Next Next End If Next
Dim myuc As New UserControlLibrary.myusercontrol If reload = True Then myuc.dgview = ucgrid For i = 2 To NumFeatures For j = 1 To i - 1 MsgBox(ucgrid.Rows(i - 1).Cells(j - 1).Value) 'blank entries here Next Next End If
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.