Skip to content

Grouping Headers

Grouping Headers

Grouping Headers

Now you can have a grouped headers in gridphp control. It would help in categorizing your related columns. (demos/appearance/group-header.php)

// 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
                                )
                            )
                        )
                    );

Resources

^ Top