Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting DBGrid Columns

Status
Not open for further replies.

CarrahaG

Programmer
Mar 25, 2007
98
0
0
AW
Hello

I am having some problems with formatting DBGrid columns. We know the syntax but I have no examples to assist me?

How can I change the alignment of (1) the Title columns and (2) the data columns?

Also, how can I use a mask to edit the numbers to have a format as follows: "9,999.99999"?

Regards,
Georges Carraha
 
Have a look at "Understanding persistent columns" under "Creating a customized grid" in Delphi Help.

If using TTable, double-click the component icon to bring up the fields editor. Double-click the DBGrid to bring up Columns editor.

You should find what you're looking for in properties of each.

Roo
Delphi Rules!
 
you can set the format by right clicking the table connected to the grid... and set the display format to ###,###,###.##
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top