EuGrid: EGW_CELL_DISABLED
- Posted by Rad <radhx at rediffmail.com> Feb 26, 2007
- 570 views
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.