//in rowfocuschanged event in datawindow, write this
long ll_budget
if currentrow > 0 then
ll_budget = this.getitemnumber(currentrow, 'expense')
if ll_budget > 0 then
this.object.kod_vot.protect = 1 //kod_vot is your column_name
this.object.dasar.protect = 1 //dasar is your column_name
else
this.object.kod_vot.protect = 0
this.object.dasar.protect = 0
end if
end if
//this will disable editing if ll_budget is greater than 0 and enable editing if it is zeroin other way you can always do this in datawindow expression.
go to protect expression for the particular column then code this :-
if (budget > 0, 1, 0)
//means when budget value greater than 0, 1 = to protect (disable column edit) else 0 = enabled column edit.