SimpleGridBuilder (ASP class definition)
Posted by Daniel - 2,232 Views
Can we display data from a database on a web page with a minimal work? well, there will be no pure instant things to achieve that, but at least we can minimize the steps when we do the job.
I created Simple Grid Builder - a simple ASP class definition - to make it easier for me when I need to display data from the database in a grid layout. The purpose is to assemble a reusable component by providing some flexible settings on it, so the component can be deployed in more than one application.
SimpleGridBuilder contains one sub procedure only, it uses all of the available settings value to display the grid. Below is the list of the available properties.
| Property | Description |
| DataSource | Connection string to the database |
| RecordSource | SQL statement to retrieve the data |
| BorderColor | Grid border color |
| CellSpacing | Spacing between each grid?s cell |
| CellPadding | Padding between each grid?s cell |
| ColWidth | Column width |
| HeaderBackColor | Header?s background color |
| HeaderFontFace | Header?s font face |
| HeaderFontSize | Header?s font size |
| HeaderFontColor | Header?s font color |
| DataBackColor | The background color for the data section |
| DataFontFace | The font face for the data section |
| DataFontSize | The font size for the data section |
| DataFontColor | The font color for the data section |
There is a sample included in this article. Just download it then follow the instruction provided in the sample in order to run it on your machine.
The SimpleGridBuilder Class code along with the example of use can be downloaded here (9 KB)
The following posts are programmatically considered as related to the current post by YARPP Plugin:
Hi, my name is Daniel Nugraha, a single male live on an island called Java, Indonesia. This is the place for me to share my interest in computer programming.
-
Get my Full Feed Here
Popular Entries
- Passing arguments to your VB.NET console application
- Microsoft Excel Import External Data Problem: When Microsoft Query doesn’t recognize some of your parameters
- Resize Image or Crop Image with Joe Lencioni’s Smart Image Resizer, WordPress Setup
- How to Get User Input and allowing more than 256 characters to be entered on .NET Console Application
- ASCII To PDU Converter (Convert ASCII to PDU and vice versa)
- ConsoleProgressBar - Simple Progress Bar Function for your VB.Net Console Application
- An example: Using CPort Delphi Component to read data from your cellphone
- Runtime-Form-Creation. Automatically creating child forms in a Delphi MDI application with a component array
- CPort Component (Serial port interface component for Delphi)
- SmartImageResizer Plugin, WordPress plugin based on Joe Lencioni’s Smart Image Resizer













