/// <summary>
        /// Gets settings for column.
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public GridColumnSettings GetColumnSettings(string id)
        {
            var settings = (from c in this._columnSettings where c.Id == id select c).FirstOrDefault();

            if (settings == null)
            {
                settings    = new GridColumnSettings();
                settings.Id = id;

                this._columnSettings.Add(settings);
            }

            return(settings);
        }
		/// <summary>
		/// Gets settings for column.
		/// </summary>
		/// <param name="id"></param>
		/// <returns></returns>
		public GridColumnSettings GetColumnSettings(string id)
		{
			var settings = (from c in this._columnSettings where c.Id == id select c).FirstOrDefault();

			if (settings == null)
			{
				settings    = new GridColumnSettings();
				settings.Id = id;

				this._columnSettings.Add(settings);
			}

			return settings;
		}
        public void SetColumnSettings(string id, bool visible, int width)
        {
            var columnSettings = ColumnSettings.FirstOrDefault(el => el.Id == id);

            if (columnSettings == null)
            {
                columnSettings = new GridColumnSettings()
                {
                    Id      = id,
                    Visible = visible,
                    Width   = width
                };

                ColumnSettings.Add(columnSettings);
            }
            else
            {
                columnSettings.Visible = visible;
                columnSettings.Width   = width;
            }
        }
		public void SetColumnSettings(string id, bool visible, int width)
		{
			var columnSettings = ColumnSettings.FirstOrDefault(el => el.Id == id);

			if (columnSettings == null)
			{
				columnSettings = new GridColumnSettings()
				{
					Id      = id,
					Visible = visible,
					Width   = width
				};

				ColumnSettings.Add(columnSettings);
			}
			else
			{
				columnSettings.Visible = visible;
				columnSettings.Width   = width;
			}
		}