TSingleRowDBGrid component

Copyright (c) 1997 by Steve Helgeson as an unpublished work, all rights reserved.

The TSingleRowDBGrid component is a direct descendent of TDBGrid.  It inherits all the functionality of a DBGrid with the added feature of the Shift+Tab and Tab keys moving the input focus from the first or last column of the grid to the prior or next TabStop control.

The help file (SRDBGRID.HLP) contains a full description of the component and the data entry problems that it solves.

This demo is designed for Windows '95 / NT under Delphi 2.0 and will not run unless the IDE is running.  The uncrippled component will probably work under Delphi 3.0; I do not have the 3.0 upgrade yet to test.


Installation:

1. Unzip the files in SRDBGRID into a suitable subdirectory.

2. From inside the Delphi 2.0 IDE, click on 'Component', then 'Install', then 'Add', then 'Browse'.  Drop down the 'Files of type' combobox and select 'Unit file (*.DCU)'.  Navigate to the directory that you unzipped SRDBGRID into and select 'SRDBGRID'.  Click 'OK' in the 'Install Components' dialog.  This will add a TSingleRowDBGrid component to your 'Data Controls' components.

Note: Don't add the SRGDEMOU.PAS as a component (which it isn't).

To Uninstall:

1. From inside the Delphi 2.0 IDE, click on 'Component', then 'Install'.  

2. Scroll down the 'Installed Units' list to 'SRDBGrid'.  Select it and click on 'Remove'.  Click on 'OK'.  This will rebuild cmplib32.dcl, removing the TSingleRowDBGrid component from your 'Data Controls' components.


Help Files:

The demo comes with a Windows help file (SRDBGRID.HLP) that describes the TSingleRowDBGrid component.  There is also a keyword file that you can use to add the TSingleRowDBGrid keywords to your Delphi keyword file so that you can find 'TSingleRowDBGrid', 'LocalWrapState', etc. with an F1 from inside the IDE.  If you want to do this:

1. Move both SRDBGRID.HLP and SRDBGRID.CNT into your Delphi containing your other help files (usually \Borland\Delphi 2.0\Bin or \Borland\Delphi 2.0\Help).  Move the SRDBGRID.KWF file into the directory containing your other .KWF files (usually the same as the .HLP file directory).

2. Find and run HELPINST (usually in \Borland\Delphi 2.0\Help\Tools - I don't know why it's put here; makes more sense, below, to have it in the directory with the help files).

3. File | Open | DELPHI.HDX  You usually need to navigate to your ..\Bin directory to find this file.

4. Options | Search paths ... If you're running HELPINST from ..\Help\Tools, you'll need to type in the path to your .kwf files.

5. Either click on the plus button or press Ctrl+I or click Keywords | Add.  Scroll down the list to 'srdbgrid.kwf' and press 'OK'.

6. File | Save.  This will save and compile DELPHI.HDX.


Demo Application:

The demo component comes with a demo project, SRGDEMO.DPR (using SRGDEMOU.PAS).  This application demonstrates all the features of the TSingleRowDBGrid with access to the SRDBGRID.HLP file, and allows you to play with the settings of the components to see the effects of setting the various properties of the control.  It requires that you have the DBDEMOS sample database installed (which comes with Delphi 2.0).


Registration:

TSingleRowDBGrid is a shareware component.  The demo will only run while the Delphi 2.0 IDE is running.  To get an uncrippled copy of the source file, you can either register the component via CompuServe Shareware:

GO SWREG
Registration ID: 15593
Price: $10 U.S.

and an uncrippled copy of the component source file, help and keyword files will be sent to your CIS address.

or you can purchase it directly from the author, using the form in OrderFrm.Txt included in SRDBGRID.ZIP.
