- Joined
- Oct 25, 2005
- Messages
- 2
- Reaction score
- 0
Having similar issues to another post I saw on here. So when I got to this sub from a diff user control...
Public Shared Sub UpdateNVRADatGridOnAddEdit()
Dim myVar As New Search
myVar.UpdateNVRADataGrid()
End Sub
It never gets to this one....
Public Sub UpdateNVRADataGrid()
dgNVRA.DataSource = BL.NVRA.Statistics.GetAll _
(Me.cboParishes.SelectedParish, Me.cboFormCodes.SelectedFormCode)
Dim DataCheck As DataTable = BL.NVRA.Statistics.GetAll(Me.cboParishes.SelectedP arish, Me.cboFormCodes.SelectedFormCode)
If Not DataCheck.Rows.Count > 0 Then
lblNoRecord.Visible = True
ElseIf DataCheck.Rows.Count = 1 Then
PopulateDetailPanel()
lblNoRecord.Visible = False
Else : lblNoRecord.Visible = False
End If
End Sub
Those two are on the same control btw. Any suggestions?
Thanks in advance.
Public Shared Sub UpdateNVRADatGridOnAddEdit()
Dim myVar As New Search
myVar.UpdateNVRADataGrid()
End Sub
It never gets to this one....
Public Sub UpdateNVRADataGrid()
dgNVRA.DataSource = BL.NVRA.Statistics.GetAll _
(Me.cboParishes.SelectedParish, Me.cboFormCodes.SelectedFormCode)
Dim DataCheck As DataTable = BL.NVRA.Statistics.GetAll(Me.cboParishes.SelectedP arish, Me.cboFormCodes.SelectedFormCode)
If Not DataCheck.Rows.Count > 0 Then
lblNoRecord.Visible = True
ElseIf DataCheck.Rows.Count = 1 Then
PopulateDetailPanel()
lblNoRecord.Visible = False
Else : lblNoRecord.Visible = False
End If
End Sub
Those two are on the same control btw. Any suggestions?
Thanks in advance.