Re: GRID Click Event Fires Only Once



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


.



Relevant Pages

  • SqlDataSource1_Selected not always firing
    ... The above fires off the SqlDataSource1_Selected just fine unless the "sqlcmd" is identical to the previous one. ... GridView1_RowDataBound is not fired either which causes some images to disappear from the grid during repaint. ... If I change the WHERE clause or page to another page index the _Selected fires twice but that does not seem to hurt anything. ... Before I tried GridView1.DataBindI tried a .Selectand that was not any better: _Selected was not fired irregardless on a repeated SQL command. ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Response Object Problem
    ... When I click on the edit link on my grid, ... returning my results in the same page grid, it somehow fires the ... Response.Redirect again when I hit enter on my keyboard (without even ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Confused about events and when they get fired.
    ... without confusing me more ... ... On this grid there is a filter form, ... the grid control to a page, the filter event never fires off. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Grid control source
    ... the form.Initfires last, after all contained objects have been ... first event to fire. ... > I have a form with a grid. ... > After I set the control source to patietnc.code_pat on the first column of ...
    (microsoft.public.fox.programmer.exchange)
  • Re: VFP8, Grid crashing when line item is clicked
    ... I was very careful to click on the Textbox portion of the Grid / Column. ... tells me that the Grid1.mousedown is the method failing. ... >> I have no code in the mousedown event to trigger an error. ... >> messagebox line in this event, it never fires. ...
    (microsoft.public.fox.programmer.exchange)

Loading