cfcProgrammer
Programmer
Hi Folks,
I am trying to read through each row in the datagrid. However, I am staying on the row that is currently highlighted in the grid. ????
Here is the code I have. The actual column in the grid is an expiry date. So, I am checking to see if any or all of the rows have an expiry date... I they all do then I need to display a message BUT if even one of the rows does not have an expiry date(meaning they are still active) then I will not need the message displayed.
Thanks in advance for any help you are able to provide.
CFC
I am trying to read through each row in the datagrid. However, I am staying on the row that is currently highlighted in the grid. ????
Here is the code I have. The actual column in the grid is an expiry date. So, I am checking to see if any or all of the rows have an expiry date... I they all do then I need to display a message BUT if even one of the rows does not have an expiry date(meaning they are still active) then I will not need the message displayed.
Thanks in advance for any help you are able to provide.
CFC
Code:
Dim i As Integer
Dim count As Integer
For i = 1 To grdBeneficiaries.ApproxCount
If (g_AppUtil.GetGridColumnValue(grdBeneficiaries, 4)) <> "" Then
count = count + 1
End If
Next
If count = grdBeneficiaries.ApproxCount Then
MsgBox CONST_MSG_CLOSE, vbExclamation
Cancel = True
End If