At 09:09 AM 9/11/2005, Bryan Bornstein wrote:
How do I edit the column(s) name and width in a DB Grid?
I have right clicked and see how to change font, etc..
but not the name or the width...
Bryan,
Here's how:
01. Form Designer | DB Grid Control | Right-Click
DB Object Properties [F11]
02. Click on [Columns] tab to access the DB Grid
Column Properties
Notice the list of all columns relevant to the
assigned table for DB Grid
03. One at a time, highlight the desired column and
then click on [>] button to add the column
or
Click on [>>] button to Add All Columns
04. Now highlight, select or click on the selected
column to customize
Click on the "Column Properties" button to
customize the Column Properties
Here you have the following options:
Title Properties:
. Alignment
. Background Color
. Caption (to customize the column name)
. Font (Name, Style, Size, Effects, Color)
Column Properties:
. Alignment
. Background Color
. Width
. Font (Name, Style, Size, Effects, Color)
. [ ] Read Only
Click on [OK] button to save column properties
05. Click on [OK[ to save DB Grid properties
06. Click on Run Form Button or press [Ctrl+F9] to
Preview the form while in Form Designer
That's all there is to it!
For a sample form to demonstrate the use of Custom DB
Grid, take a look at the following forms in ConComp
database:
Database: ConComp
Forms: DBGridCustomColumn
Database: RRBYW9
Forms: SalesTransactions
For more details:
01. Start RBG7
02. Press [F1] key for Help
03. Contents | Reference Index | How To | Form Controls
Database Controls | DB Grid
Enjoy and make sure to have fun!
Very Best R:egards,
Razzak.