Now you can have a grouped headers in phpgrid control. It would help in categorizing your related columns. See screenshot.

The grid configuration is fairly simple, by calling following function with desired parameters.

// group columns header
$g->set_group_header( array(
		    "useColSpanStyle"=>true,
		    "groupHeaders"=>array(
		        array(
		            "startColumnName"=>'name', // group starts from this column
		            "numberOfColumns"=>2, // group span to next 2 columns
		            "titleText"=>'Personal Information' // caption of group header
		        ),
		        array(
		            "startColumnName"=>'company', // group starts from this column
		            "numberOfColumns"=>2, // group span to next 2 columns
		            "titleText"=>'Company Details' // caption of group header
		        )
		    )
		)
	);

This feature is part of premium version and onwards. Customers (with license) can get latest build by sending an email request at [email protected]

How useful was this post?

Click on a star to rate it!

Average rating 3 / 5. Vote count: 1

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Leave a Reply