Example

Set Individual Column Alignment.


Set Individual Column Alignment code snippet.

The following is a simple example of how to set the horizontal alignment of a specific column in the grid.  The code snippet assumes you have a DGrid control named "DGrid1" sited on the form.


    'Sets the ColAlign property of the 
    'second column in the grid to dgCenter.
    DGrid1.Cols(1).ColAlign = dgCenter