Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners
Testimonials
George Westrup: "I have saved so much time using your products. Also you are quick to respond to every question I have had. Thanks for the great support".
Grey: "We're a two-person company, it's just me an my wife. I'm the technical guru, and she handles the business operations. I have to know a lot about MySQL, but that's much too technical for her. I have frequently had to setup CGI scripts (I code in Perl) so she can manage some of our tables (suppliers, manufacturers, etc).

I discovered PHP Generator a couple of days ago, tried the free version,and within a few hours I had purchased the Pro version (as well as SQL Maestro for MySQL).

Today I am completing the conversion of the last of my custom table managers to PHP Generator. This is eliminating several thousand lines of code that I don't have to support any more!

Thanks for this fantastic product".

More

Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next

OnGetCustomColumnGroup

This event allows you to setup multi-row grid header. Live example.

 

Signature:

function OnGetCustomColumnGroup(FixedKeysArray $columns, 

                                ViewColumnGroup $columnGroup)

 

Parameters:

$columns

The associative array of column headers.

$columnGroup

The default (root) group. By default all column headers are placed in this group.

 

Description

You can organize columns in logical groups and display them using multi-row header representation. A column group is visually represented by a header displayed above the headers of the columns it combines. Each group can contain data columns as well as other groups.

 

Examples

All the examples below can be seen live in our Feature Demo.

 

Example 1

This example shows how to define an additional header for 3 columns:

 

$columnGroup->add(new ViewColumnGroup('Common info',

    array(

        $columns['id'],

        $columns['title'],

        $columns['release_date']

    )

));

 

Example 2

This example shows how to define nested column groups:

 

$columnGroup->add(new ViewColumnGroup('Addtional info',

    array(

        new ViewColumnGroup('Texts',

            array(

                $columns['genre_id'],

                $columns['original_title'],

                $columns['original_language_id']

            )

        ),

        new ViewColumnGroup('Numbers',

            array(

                $columns['runtime'],

                $columns['rating']

            )

        )

    )

));

 



Prev Return to chapter overview Next