![Lazarus image1 client.rect](https://kumkoniak.com/79.jpg)
Then we will StrechDraw it in each related cell. The final product looks something like this: Appearanceįor creating a gradient bitmap background, firstly we should create it in memory. Please note that in this component, it was supposed that the first column and first row are the fixed ones and the other ones are data content, so if you need another condition please change the DrawCell as you wish. Default filter expressions that it generates are compatible with TCustomADODataset but there is an event for manipulating filter expression, just before applying the filter. Remember that this component is developed in Delphi 7 and its sorting capability is only available to descendents of TCustomADODataset. There are some free translations of GDI+ for Delphi but the one that has been used in this component could be downloaded from however it has been already added to the project. The library which is used for giving a new look to our grid is GDI+. Integrated and configurable popup menu for applying commands on individual records.Automatically adjust the width of columns.Integrated search capabilities for string fields.Gradient background according to cell type.Here are some features that may enhance the traditional DBGrid and make it more user friendly: Some of them are new and some of them can be found on the internet. In this article, we will add some features that make TDBGrid more user friendly and easy to use. It's a long time since TDBGrid has been released and there is no major change in the behavior of this component till now.
![Lazarus image1 client.rect](https://kumkoniak.com/79.jpg)