public DatabaseColumnObject GetDataGridColumn(int column)
        {
            DatabaseColumnObject col = null;

            columnDictionary.TryGetValue(column, out col);

            return(col);
        }
        public void AddColumn(string databaseColumnName, string dataGridColumnName, MyDataTypes dataType, bool orderByColumn, int columnInGridWidth, bool encrypted, bool includeInGrid = true)
        {
            DatabaseColumnObject colObj = new DatabaseColumnObject();

            colObj.DataBaseTableColumnName = databaseColumnName;
            colObj.DataGridColumnName      = dataGridColumnName;
            colObj.DataType          = dataType;
            colObj.IncludeInDataGrid = includeInGrid;
            colObj.OrderByColumn     = orderByColumn;
            colObj.Column            = columnDictionary.Count;
            colObj.Encrypted         = encrypted;
            colObj.ColumnWidth       = columnInGridWidth;

            columnDictionary.Add(columnDictionary.Count + 1, colObj);
            columnList.Add(colObj);
        }
 public void AddColumn(DatabaseColumnObject dataColumn)
 {
     dataColumn.Column = columnDictionary.Count;
     columnDictionary.Add(columnDictionary.Count + 1, dataColumn);
     columnList.Add(dataColumn);
 }