- Code: Select all Expand view
oCol:= oApp():oGrid:AddCol()
oCol:AddResource("SEL1")
oCol:AddResource("SEL2")
oCol:AddResource("SEL3")
oCol:AddResource("SEL4")
oCol:bStrData := { || SOCI->ATTIVITA}
oCol:cHeader := "Professione"
oCol:bEditValue := { || SOCI->ATTIVITA }
oCol:nDataStyle := oCol:DefStyle( AL_LEFT, .T.)
oCol:nEditType := EDIT_LISTBOX
oCol:aEditListTxt := { "Docente","ATA","Alunno/a","Esterno"}
oCol:aEditListBound := { "Docente","ATA","Alunno/a","Esterno" }
oCol:bOnPostEdit := {|o, v| iif( v != NIL, SOCI->ATTIVITA := v,) }
oCol:nWidth := 160
How I can make ?
I try with
- Code: Select all Expand view
oCol:bBmpData := { || iif( SOCI->Attivita, 1, 2) }
but it is good for the first and second option and How I must make for all option ?
thanks in advance