Reputation: 1
How can I merge two or more rows in one column with GridView in Yii2? The screenshot for 'ETSv2':
Thanks in advance
Upvotes: 0
Views: 1872
Reputation: 9652
In your model:
public function getMergedRows()
{
return $this->name . ' \n ' . $this->eamil;
}
in your grid view:
[
'label'=>'Test',
'attribute'=>'MergedRows',
],
Upvotes: 1