From 25a0a04cdcca020b4f198d79e50938a3fcbbe8b0 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 28 Mar 2006 23:10:29 +0000 Subject: Added TComponentReflection. --- framework/Web/UI/WebControls/TDataGrid.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'framework/Web/UI') diff --git a/framework/Web/UI/WebControls/TDataGrid.php b/framework/Web/UI/WebControls/TDataGrid.php index e3bc3fbe..55b12ebc 100644 --- a/framework/Web/UI/WebControls/TDataGrid.php +++ b/framework/Web/UI/WebControls/TDataGrid.php @@ -510,19 +510,19 @@ class TDataGrid extends TBaseDataList implements INamingContainer } /** - * @param boolean whether paging is enabled + * @return boolean whether sorting is enabled. Defaults to false. */ - public function setAllowPaging($value) + public function getAllowSorting() { - $this->setViewState('AllowPaging',TPropertyValue::ensureBoolean($value),false); + return $this->getViewState('AllowSorting',false); } /** - * @return boolean whether sorting is enabled. Defaults to false. + * @param boolean whether paging is enabled */ - public function getAllowSorting() + public function setAllowPaging($value) { - return $this->getViewState('AllowSorting',false); + $this->setViewState('AllowPaging',TPropertyValue::ensureBoolean($value),false); } /** -- cgit v1.2.3