EuGrid: EGW_CELL_DISABLED

new topic     » topic index » view thread      » older message » newer message

Hi,

I am trying to disable a cell in a particular row depending on true / false
value in a sequence using the following code.

if params[1] = EGW_CELLFORMAT then
	if find(col_id, {3, 4}) then -- Amount / Percentage
		if col_id = 3 then -- Amount Column
			if currFormProp[1] then -- Amt required
				statmsg &= " (EGW_CELLFORMAT: Amt True)"
void = EGW_SetCellProperty(EuGrid802, params[2], EGW_CELL_DISABLED,
EGW_False)
			else -- Percentage required
				statmsg &= " (EGW_CELLFORMAT: Amt False)"
void = EGW_SetCellProperty(EuGrid802, params[2], EGW_CELL_DISABLED,
EGW_True)
			end if
		else -- Percentage Column
			if currFormProp[2] then -- % required
				statmsg &= " (EGW_CELLFORMAT: % True)"
void = EGW_SetCellProperty(EuGrid802, params[2], EGW_CELL_DISABLED,
EGW_False)
			else -- Percentage required
				statmsg &= " (EGW_CELLFORMAT: % False)"
void = EGW_SetCellProperty(EuGrid802, params[2], EGW_CELL_DISABLED,
EGW_True)
			end if
		end if
	end if
end if


But as the concerned cells get focus, instead of disabling only that cell, the
entire grid gets disabled.
When I move out of those cells, the grid gets enabled.

How do I make only that cell disabled on focus?

Regards,
Rad.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu