Colin Burton
Programmer
Hi all. I have been trying to resolve this for a couple of days
I have a grid, with 11 columns each with a text box, only one of which is enabled, on the form is a "save Changes" button" which my users want disabled until a change in the grid is made (to the enabled text box)
so, I thought I would out that in the keypress or interactive change. however, that never fires.
I believe the issue is that at times I refresh the grid recordsource (as there are also selection criteria on the form) and this does a SQL select to the backend SQL Database tables to get the matching data and display in the grid
my google search point towards using bindevents - i tried that but with no joy
After each time setting the recordsource i execute
BINDEVENT (THISFORM.Grid1.Column11.Text1, "KeyPress", THISFORM, "myKeyPress")
And the form.myKeyPress is simply
ThisForm.formContainer1.CmdSave.Enabled = .T.
I also considered using Filters after an initial query, but the number of records in the SQL Database table really says that is a bad idea
Can anyone help point me in the right direction
TIA
Colin
I have a grid, with 11 columns each with a text box, only one of which is enabled, on the form is a "save Changes" button" which my users want disabled until a change in the grid is made (to the enabled text box)
so, I thought I would out that in the keypress or interactive change. however, that never fires.
I believe the issue is that at times I refresh the grid recordsource (as there are also selection criteria on the form) and this does a SQL select to the backend SQL Database tables to get the matching data and display in the grid
my google search point towards using bindevents - i tried that but with no joy
After each time setting the recordsource i execute
BINDEVENT (THISFORM.Grid1.Column11.Text1, "KeyPress", THISFORM, "myKeyPress")
And the form.myKeyPress is simply
ThisForm.formContainer1.CmdSave.Enabled = .T.
I also considered using Filters after an initial query, but the number of records in the SQL Database table really says that is a bad idea
Can anyone help point me in the right direction
TIA
Colin