diff options
author | xue <> | 2006-02-04 05:05:03 +0000 |
---|---|---|
committer | xue <> | 2006-02-04 05:05:03 +0000 |
commit | e7622f08814c6c7a1166addf9bc23c5780bd74b0 (patch) | |
tree | 67f9648fb6c9b62688a0acebb33d8788c506c13c /framework/Web/UI/WebControls/TEditCommandColumn.php | |
parent | f97358b8da7a2cbb1bf6438298286f7290616381 (diff) |
Fixed a bug about performing databind with an empty dataset.
Diffstat (limited to 'framework/Web/UI/WebControls/TEditCommandColumn.php')
-rw-r--r-- | framework/Web/UI/WebControls/TEditCommandColumn.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TEditCommandColumn.php b/framework/Web/UI/WebControls/TEditCommandColumn.php index b0814a1a..8244981b 100644 --- a/framework/Web/UI/WebControls/TEditCommandColumn.php +++ b/framework/Web/UI/WebControls/TEditCommandColumn.php @@ -156,12 +156,12 @@ class TEditCommandColumn extends TDataGridColumn parent::initializeCell($cell,$columnIndex,$itemType);
$buttonType=$this->getButtonType()=='LinkButton'?'TLinkButton':'TButton';
if($itemType==='Item' || $itemType==='AlternatingItem' || $itemType==='SelectedItem')
- $this->addButtonToCell($cell,'Edit',$this->getUpdateText(),false,'');
+ $this->addButtonToCell($cell,'Edit',$this->getEditText(),false,'');
else if($itemType==='EditItem')
{
$this->addButtonToCell($cell,'Update',$this->getUpdateText(),$this->getCausesValidation(),$this->getValidationGroup());
$cell->getControls()->add(' ');
- $this->addButtonToCell($cell,'Cancel',$this->getUpdateText(),false,'');
+ $this->addButtonToCell($cell,'Cancel',$this->getCancelText(),false,'');
}
}
|