|
![]() |
#1 |
Участник
|
Цитата:
Сообщение от Vadik
обычно это делается так:
перекрывается active() на datasource: Код: int active() { int ret; ret = super(); if (myTable.condition) { myTable_ds.allowEdit(false); myTable_ds.allowDelete(false); } else { myTable_ds.allowEdit(true); myTable_ds.allowDelete(true); } return ret; } 2Vadik: Лаконичнее и красивее будет так: Код: int active() { int ret; ret = super(); this.allowEdit(boolean_condition); return ret; } ![]()
__________________
WBR, Anton |
|