Hello
I have problem with datagrid control.
First time when I had run my project at that time control worked properly, the list was their according to the condition. But after that when I had run the same it satisfies the condition but list was not their. Still caption of the datagrid was set.
The code is as follows:

If (bflag = False) Then
rsS.Open "select *from table where condition'", con, adOpenDynamic, adLockOptimistic
If rsS.RecordCount != 0 Then
Set DataGrid.DataSource = rsS
DataGrid.ReBind
bflag = True
rsS.Close
End If
Else
bflag = False
End If

Thanks in advance
rathorek