Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

More on Grid refresh

Status
Not open for further replies.

jerold

Programmer
Aug 30, 2000
52
PH
I have the following controls:
Form1 --> Data environment>Code
USE Table1
Grid1 --> Table1 as control source
cmdFilter -->
SELE Table1
SET FILTER TO Table1.field1=criteria1
Problem:
How do I make a refresh on my grid to see result
of the filter. I have this code...
THISFORM.GRID1.REFRESH()
But still I cant see the changes on the grid.

Please help me.
I need this to complete my module for our system.

Thank You. [sig][/sig]
 
jerold

* THISFORM.cmdFilter.Click.Event
SELE Table1
SET FILTER TO Table1.field1=criteria1
THISFORM.GRID1.Refresh()

You need to be certain that the filter expression Table1.field1=criteria1 is .T., otherwise there will nothing showing in your grid.

Chris

[sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top