G
Guest
Hello:
I have the following code:
Dim lsFilter As String = Nothing
Select Case rblStatus.SelectedItem.Value
Case "S"
lsFilter = String.Concat("D_STAT_CD_C = '", "N'")
Case "R"
lsFilter = String.Concat("D_STAT_CD_C <> '", "N'")
End Select
If Not lsFilter = Nothing Then
dsMain.Tables(0).Select(lsFilter)
End If
When the value is 'R', it picks up the right filter expression, "D_STAT_CD_C
<> '", "N'", but the Rowcount of dsMain.Tables(0) does not change.
What am I doing wrong?
Venki
I have the following code:
Dim lsFilter As String = Nothing
Select Case rblStatus.SelectedItem.Value
Case "S"
lsFilter = String.Concat("D_STAT_CD_C = '", "N'")
Case "R"
lsFilter = String.Concat("D_STAT_CD_C <> '", "N'")
End Select
If Not lsFilter = Nothing Then
dsMain.Tables(0).Select(lsFilter)
End If
When the value is 'R', it picks up the right filter expression, "D_STAT_CD_C
<> '", "N'", but the Rowcount of dsMain.Tables(0) does not change.
What am I doing wrong?
Venki