1. EuGrid: EGW_CELL_DISABLED
- Posted by Rad <radhx at rediffmail.com> Feb 26, 2007
- 571 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.
2. Re: EuGrid: EGW_CELL_DISABLED
- Posted by Jonas Temple <jtemple at yhti.net> Feb 26, 2007
- 530 views
The code looks right to me. Can you post a small working example showing the problem? I should be able to help. Jonas Temple http://www.innovativesys.net
3. Re: EuGrid: EGW_CELL_DISABLED
- Posted by Rad <radhx at rediffmail.com> Feb 27, 2007
- 531 views
Jonas Temple wrote: > > The code looks right to me. Can you post a small working example showing the > problem? I should be able to help. > Hi Jonas, I have sent you (jtemple at yhti.net) a test program EuGridTest.exw in which I have duplicated the EuGrid part from my actual project. There are 5 rows and 4 columns in the grid. Third and Fourth columns are for Amount and percentage respectively. Depending on the True/False values set for each row for these columns, I want to accept only one of these 2 columns at a time. Regards, Rad.
4. Re: EuGrid: EGW_CELL_DISABLED
- Posted by Jonas Temple <jtemple at yhti.net> Feb 27, 2007
- 532 views
- Last edited Feb 28, 2007
Rad, Just checked my email and it's not there. The email address you cited is correct, however. If you didn't get a bounce back could you try it again? Jonas Temple http://www.innovativesys.net
5. Re: EuGrid: EGW_CELL_DISABLED
- Posted by Rad <radhx at rediffmail.com> Feb 28, 2007
- 559 views
Jonas Temple wrote: > > Rad, > > Just checked my email and it's not there. The email address you cited is > correct, > however. > > If you didn't get a bounce back could you try it again? > Sending mail in plain text format. May be html format was rejected...... Though I didn't get bounce message. Regards, Rad.