GetGridCol

Returns a reference to the specified grid column.

To set the properties of the column, use the CRMGridColBlock properties.

Parameters

GridColName. Specifies the column name.

Return value
  • CRMGridColBlock object. Indicates that the specified column exists.
  • Nil object. Indicates that the specified column doesn't exist.
Examples

ListBlock = CRM.GetBlock("companygrid");
Column = ListBlock.GetGridCol("comp_name");
Column.allowOrderby = true;
CRM.AddContent(ListBlock.Execute());
Response.Write(CRM.GetPage());

Returns the comp_name column and configures the list to be ordered by this column.