From f587496dcba7c7030062b5dfdc7612f3ed89dbf9 Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 4 Sep 2006 22:00:25 +0000 Subject: updated datagrid columns to make use of enumerable list item types. --- framework/Web/UI/WebControls/TBoundColumn.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Web/UI/WebControls/TBoundColumn.php') diff --git a/framework/Web/UI/WebControls/TBoundColumn.php b/framework/Web/UI/WebControls/TBoundColumn.php index 26fad32b..437dfbf9 100644 --- a/framework/Web/UI/WebControls/TBoundColumn.php +++ b/framework/Web/UI/WebControls/TBoundColumn.php @@ -106,7 +106,7 @@ class TBoundColumn extends TDataGridColumn parent::initializeCell($cell,$columnIndex,$itemType); switch($itemType) { - case TDataGrid::IT_EDITITEM: + case TListItemType::EditItem: $control=$cell; if(!$this->getReadOnly()) { @@ -118,9 +118,9 @@ class TBoundColumn extends TDataGridColumn if(($dataField=$this->getDataField())!=='') $control->attachEventHandler('OnDataBinding',array($this,'dataBindColumn')); break; - case TDataGrid::IT_ITEM: - case TDataGrid::IT_ALTERNATINGITEM: - case TDataGrid::IT_SELECTEDITEM: + case TListItemType::Item: + case TListItemType::AlternatingItem: + case TListItemType::SelectedItem: if($this->getDataField()!=='') $cell->attachEventHandler('OnDataBinding',array($this,'dataBindColumn')); break; -- cgit v1.2.3