Example

Set Individual Column Widths.


Set Individual Column Widths code snippet.

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


    'Sets the ColWidth property of the 
    'second column in the grid to 200 pixels.
    DGrid1.Cols(1).ColWidth = 200