It's a bit trickier with the DBGrid. I've discovered that I can change the heading like this:
TKDBGridCol(KDBGrid1.Columns[c]).Title := 'Some heading';
I had the impression that some complicated coding was contained in TKDBGrid to obtain the maximum column widths. It's impractical to read every column in every row of a large DB file to obtain the maximum width of each column. As a simple example, assume you only have 3 columns with maximum widths of 10, 40, and 20. If your grid has a total width of 100 pixels, I want to add equal padding to each column, ending with column widths of 20,50, and 30.
Is there an SQL command that can get those maximum widths?