Re: GRID Click Event Fires Only Once
- From: "Gerhard Gentele" <gfgentele@xxxxxxxxxx>
- Date: Fri, 20 Jun 2008 05:02:39 +0200
Hello Dan,
thanks for the advice - but it doesn't work. Here the steps I make:
PART1:
I have ha GRID on a form set to visible=.f.
I open a table TESTTABLE
I bind the GRID to the table with GRID1.RECORDSOURCE= "TESTTABLE"
and make the GRID visible.
Now I have a little routine in GRID1 -> COLUMN2 -> TEXT1 -> CLICK
THIS CLICKEVENT ROUTINE NOW WORKS FINE
PART2:
next I tell the the GRID that the RECORDSOURCE is "" with
GRID1.RECORDSOURCE=""
now I close the table with CLOSE DATABASE
PART3:
I do the things described in PART1 again and the CLICKEVENT doesn't do
anything anymore and I have the question: WHAT WENT WRONG?
Greetings Gerhard
"Dan Freeman" <spam@xxxxxxxxxxxxx> schrieb im Newsbeitrag
news:%23taIHck0IHA.4040@xxxxxxxxxxxxxxxxxxxxxxx
The event still fires, but your code is gone because you've closed the
grid's data source. When you do that, the grid deconstructs.
Set the recordsource to "" before closing the table. Or, better yet, don't
close it. <g>
Dan
Gerhard Gentele wrote:
Hello Friends,
now I started using a GRID. It has two columns and uses as
RECORDSOURCE a DBF table. With a click i can change a .T. to .F. and
back again. Everything works fine until I close the table and make
the GRID unvisible. Starting everything again the same way brings
back the GRID, but the ability to fire an EVENT (such like a CLICK or
a RIGHTCLICK) is not possible anymore - it's gone...
CAN ANYBODY TELL ME WHY?
Greetings Gerhard
.
- Follow-Ups:
- Re: GRID Click Event Fires Only Once
- From: Dan Freeman
- Re: GRID Click Event Fires Only Once
- References:
- GRID Click Event Fires Only Once
- From: Gerhard Gentele
- Re: GRID Click Event Fires Only Once
- From: Dan Freeman
- GRID Click Event Fires Only Once
- Prev by Date: Re: GRID Click Event Fires Only Once
- Next by Date: Re: Reinstall XP
- Previous by thread: Re: GRID Click Event Fires Only Once
- Next by thread: Re: GRID Click Event Fires Only Once
- Index(es):
Relevant Pages
|