Open this page in the API Guide

ReferenceGrid.totalColumns Property

Gets the value indicating the total number of columns