Hi, I am trying to add a class to the tag so that I can control its attributes, particularly width.
Here is what the generated HTML looks like with class empty.
As you can see, there are several tags which I would love to be able to assign a class to so that I can do the styling from an external css file, rather than doing it within the controller as it seems to be done below. Thanks.
// Add Target Data Grid
$this->dtgTargets = new QDataGrid($this);
$this->dtgTargets->CellPadding = 5;
$this->dtgTargets->CellSpacing = 5;
$this->dtgTargets->UseAjax = true;
$this->dtgTargets->AddColumn(new QDataGridColumn("Del", '<?= $_FORM->DeleteButton_Render($_ITEM) ?>', 'Width=10', 'HtmlEntities=false')); //add TF 11-27-08
$this->dtgTargets->AddColumn(new QDataGridColumn('Target Account','<a href="/account_detail.php?aid=<?= str_replace(" ","_",$_ITEM->Account->Id); ?>"><?= $_ITEM->Account->Name ?></a>','HtmlEntities=false',array('OrderByClause' => QQ::OrderBy(QQN::Target()->Account->Name), 'ReverseOrderByClause' => QQ::OrderBy(QQN::Target()->Account->Name,false))));
$this->dtgTargets->GetColumn(0)->Width = '200px';
$this->dtgTargets->SortColumnIndex = 0;