Garry's Mod Wiki

DGrid:SetCols

  DGrid:SetCols( number cols )

Description

Sets the number of columns this panel should have.

The DGrid will resize its width to match this value.

Arguments

1 number cols
The desired number of columns