Group Rows and Row Texts in 10Tec iGrid

(iGrid Control Tour, Step 3 of 6)

iGrid control allows you to group rows and display row details as row texts.

Group rows and row texts

iGrid automatically creates standard group rows when you group iGrid by its columns using the grid interface. In addition to this, iGrid also provides you with the ability to create so-called row texts drawn under the normal cells inside a row. They look like message preview in Microsoft Outlook. You can combine these two features in the same grid and create an Outlook-like grid:

Outlook-like ActiveX grid with group rows

iGrid provides you with the ability to draw row texts starting from any column - not only from the first visible one.

Group rows created manually

The other way to create group rows in iGrid is to add them from your code. Manual creation of group rows gives you flexibility in implementing any grouping algorithm. You can even use manual group rows for special purposes, such as total rows:

Group rows created manually in iGrid ActiveX grid

Pay attention to the fact that you can hide the plus/minus buttons used to collapse or expand group rows.

Formatting group rows and row texts

The contents of group rows and row texts are stored in special row text cells of iGrid. These cells can be formatted using all the available cell formatting options for normal cells. You can set the horizontal and vertical alignment, custom font, color and so on. In addition to that, you can even display icons and check boxes in group rows!

iGrid's built-in cell editors »