>How do you disable certain cells in a grid without disabling the whole column? Depending upon certain condition, I need for each row/record to have certain column(s) disabled for dataentry.
>
>For example, if I have 5 columns with 2 records/rows, I want to disable column 3 for the first record but disable column 5 in second record. IOW, each record/row can have different columns disabled.
>
>TIA.
IMHO control's when event is the easiest. ie: You want to allow dataentry to a field only if First_name+Last_name are filled :
return !empty(nvl(myTable.First_name,"")) and !empty(nvl(myTable.Last_name,""))
This has one disadvantage though. If the column is the last one in grid and not visible, to see its contents (when returned .f. situation) user should either tab+backtab or use hor. scrollbar.
Cetin