dantheinfoman
Programmer
Hi All,
I've had success getting the rows that have C_IMPORTED = .T. to be red, but I also want to disable the entire row so that people can't edit a record it if has been flagged as 'imported'.
Here's what I have so far, both in the form INIT event:
This part doesn't work:
Can anybody help me. I've read forums galore about using AfterRowColChange, and have had limited success in making text and checkboxes ReadOnly using this in the AfterRowColChange:
However, people can still change the comboboxes, even if it's 'ReadOnly'. So then I tried to make those three comboboxes disabled in the AfterRowColChange:
But it's wonky and you have to click on two different rows/columns before it makes EVERY ROW either Enabled or disabled for those comboboxes.
I don't have much hair left, but I'm tempted to pull the remainder out. Please help if you can. I'm wondering if there's a SETALL I can use to make certain rows entirely disabled and the rest enabled.
Thanks!
Dan
I've had success getting the rows that have C_IMPORTED = .T. to be red, but I also want to disable the entire row so that people can't edit a record it if has been flagged as 'imported'.
Here's what I have so far, both in the form INIT event:
Code:
***colors and disabling imported records***
thisform.grdComAll.setall("DynamicBackColor","iif( !EMPTY(c_imported), rgb(255,204,204), rgb(255,255,255) )","Column")
This part doesn't work:
Code:
thisform.grdcomAll.SetAll("Enabled","iif( !EMPTY(c_imported), .F.,.T.)")
Can anybody help me. I've read forums galore about using AfterRowColChange, and have had limited success in making text and checkboxes ReadOnly using this in the AfterRowColChange:
Code:
this.ReadOnly = (c_imported)
However, people can still change the comboboxes, even if it's 'ReadOnly'. So then I tried to make those three comboboxes disabled in the AfterRowColChange:
Code:
LPARAMETERS nColIndex
this.ReadOnly = (c_imported)
this.clmCType.cmbCtype.Enabled = !(c_imported)
this.clmTopic.cmbComTop.Enabled = !(c_imported)
this.cmbConfer.cmbConfer.Enabled = !(c_imported)
But it's wonky and you have to click on two different rows/columns before it makes EVERY ROW either Enabled or disabled for those comboboxes.
I don't have much hair left, but I'm tempted to pull the remainder out. Please help if you can. I'm wondering if there's a SETALL I can use to make certain rows entirely disabled and the rest enabled.
Thanks!
Dan