PDA

View Full Version : DBGrid and Columns


N/A
06-20-2000, 01:42 AM
Hi,

I've got the question.I'm using dbgrid in order to display some information from one table and would like to add a new column which will take data from other table. The problem is that I keep in one table codes and description and in the second one only codes and other information. In dbGrid I'd like to see second table with a code's description from first table too.

N/A
06-20-2000, 06:27 AM
You need to use a TQuery as the Dataset for your grid. Your TQuery component will have SQL that joins the two (or more) tables you need. Whatever columns you return in your query, from either table, will be displayed in the grid.