diff options
Diffstat (limited to 'framework/Web/UI/WebControls/TDataGridColumn.php')
-rw-r--r-- | framework/Web/UI/WebControls/TDataGridColumn.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TDataGridColumn.php b/framework/Web/UI/WebControls/TDataGridColumn.php index 6206e595..e8cc81aa 100644 --- a/framework/Web/UI/WebControls/TDataGridColumn.php +++ b/framework/Web/UI/WebControls/TDataGridColumn.php @@ -275,7 +275,7 @@ abstract class TDataGridColumn extends TApplicationComponent {
switch($itemType)
{
- case 'Header':
+ case TDataGrid::IT_HEADER:
$sortExpression=$this->getSortExpression();
$allowSorting=$sortExpression!=='' && (!$this->_owner || $this->_owner->getAllowSorting());
if($allowSorting)
@@ -317,7 +317,7 @@ abstract class TDataGridColumn extends TApplicationComponent }
}
break;
- case 'Footer':
+ case TDataGrid::IT_FOOTER:
if(($text=$this->getFooterText())==='')
$text=' ';
$cell->setText($text);
|