NiceGrid v2.20
© 2003 - 2007, Priyatna
Bandung - Indonesia

http://www.priyatna.org/
mailto:me@priyatna.org

Introduction
License
Version History
Installation
Working with Headers
Contacts

Version: 2.20
Release Date: November 2nd, 2003

 


Introduction

NiceGrid is a Delphi component that aimed to be a standard string grid replacement. It is written from scratch, not descended from TStringGrid. The main reason why I write this component is to have a grid component that nice and smooth. Here's some feature of NiceGrid:

Since it is a new component, there are several main differences between NiceGrid and TStringGrid:

 


License

This library is released under Mozilla Public License. You can use it in your freeware, shareware or commercial softwares. You can send your modification to me, and if I decide to include it in the main distribution, I will add your name as a contributor. You can read full licensing information here.

 


Version History

Version 2.20

Version 2.10

Version 2.00

 


Installation

There is no special process to install it on Delphi. Just open NiceGridD7.dpk on Delphi IDE and press Install button. I use Delphi 7. If you use another Delphi version, you may have to make some minor changes.

The component will appear in priyatna.org tab.

 


Working with Headers

All features explained below are available at design time, but I will cover it using codes, for easy following.

NiceGrid will automatically scan column title and make appropriate merging and multilining. The only thing you must do is setting each column's Title property. This is a string type property. To make a multilined caption, use ';' (semicolon) character.

For example:

NiceGrid1.Columns[0].Title := 'First Line;Second Line';

will make

First Line
Second Line

 

HeaderLine property determines how much line will be allocated for headers. Each line in headers can be set also via column's Title property, separated by '|' character.

For example:

NiceGrid1.HeaderLine := 2;
NiceGrid1.Columns[0].Title := 'First Line|Second Line';

will make

First Line
Second Line

 

To merge two header cells, set each cell to exactly same value, including ';' characters if they are multilined.

For example:

NiceGrid1.HeaderLine := 2;
NiceGrid1.ColCount := 2;
NiceGrid1.Columns[0].Title := 'One|Two';
NiceGrid1.Columns[1].Title := 'One|Three';

will make

One
Two
Three

 

Using combination of '|' and ';' characters, we can make a complex header.

For example:

NiceGrid1.HeaderLine := 2;
NiceGrid1.ColCount := 5;
NiceGrid1.Columns[0].Title := 'Merged;Multilined|Merged;Multilined';
NiceGrid1.Columns[1].Title := 'First Group|One';
NiceGrid1.Columns[2].Title := 'First Group|Two';
NiceGrid1.Columns[3].Title := 'Second Group|Three';
NiceGrid1.Columns[4].Title := 'Second Group|Four';

will make

Merged
Multilined
First Group
Second Group
One
Two
Three
Four

 

 


Contacts

Don't hesitate to report any bug or whish to me:

Priyatna
Bandung - Indonesia

http://www.priyatna.org/
mailto:me@priyatna.org