/// <summary>
        /// Sets columns configuration
        /// </summary>
        /// <param name="widths">Column widths in percents</param>
        public void SetColumns(float[] widths)
        {
            ColumnCount = widths.Length;
            while (ColumnStyles.Count < ColumnCount)
            {
                ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 33.3f));
            }
            while (ColumnStyles.Count > ColumnCount)
            {
                ColumnStyles.RemoveAt(ColumnStyles.Count - 1);
            }

            for (int i = 0, iMax = widths.Length; i < iMax; i++)
            {
                var columnStyle = ColumnStyles[i];
                columnStyle.SizeType = SizeType.Percent;
                columnStyle.Width    = widths[i];
            }
        }