Image of Navigational Panel mapped to Contents / Home / Search TrueDBGrid 4.0
Tech Support Question

Image of Line Break

Q. What I am hoping for (probably in future releases) is the ability to:

  1. Have independently sized columns;
  2. Turn off all cell borders;
  3. Access support for CR/LF within cells.

A. Hope no longer. The answer is here...

Each column can be sized independently. There is a Width property that applies to the Column object. The Width can be changed by code or by the user at run-time. It can also be set at design-time.

The cell borders are controlled by the RowDividerStyle of the grid object, and by the DividerStyle of the Column object

It is possible to embed a CR/LF combination in a grid cell. It would be necessary to trap for something like CTRL+ENTER, and add the CR and LF characters to the text.

Q. When adding columns to the grid at run-time, the column that is always displayed is the right-most column. Also, the horizontal scroll bar is at the right-most position. This happens even if there is enough space on the grid to display all the columns.

I tried setting Row = 0 and Col = 0 but this does not seem to make any difference.

A. Try using the LeftCol property:

  ...Code to add columns
  TDBGrid.LeftCol = 0    ' Or whatever column you want

It is also documented in the help file for the behaviour of adding columns, if you are using more than one split.


Image of Arrow to Previous Article Image of Arrow to Next Article

[TECH SUPPORT TOC]
Image of Line Break
[HOME] [TABLE OF CONTENTS] [SEARCH]