protected function GetHeaderRowHtml()
{
$objHeaderStyle = $this->objRowStyle->ApplyOverride($this->objHeaderRowStyle);
$strToReturn = sprintf(" <tr id=\"%s_rowh\" %s>\r\n", $this->strControlId, $objHeaderStyle->GetAttributes());
$intColumnIndex = 0;
if ($this->objColumnArray) {
foreach ($this->objColumnArray as $objColumn) {
if ($objColumn->OrderByClause) {
// This Column is Sortable
if ($intColumnIndex == $this->intSortColumnIndex) {
$strName = $this->GetHeaderSortedHtml($objColumn);
} else {
$strName = $objColumn->Name;
}
$this->strActionParameter = $intColumnIndex;
$strToReturn .= sprintf(" <th id=\"%s_rowh_%s\" %s><a href=\"\" %s%s>%s</a></th>\r\n", $this->strControlId, $intColumnIndex, $this->objHeaderRowStyle->GetAttributes(), $this->GetActionAttributes(), $this->objHeaderLinkStyle->GetAttributes(), $strName);
} else {
$strToReturn .= sprintf(" <th id=\"%s_rowh_%s\" %s>%s</th>\r\n", $this->strControlId, $intColumnIndex, $this->objHeaderRowStyle->GetAttributes(), $objColumn->Name);
}
$intColumnIndex++;
}
}
$strToReturn .= " </tr>\r\n";
return $strToReturn;
}