public void AddColumn(string databaseColumnName, string dataGridColumnName, MyDataTypes dataType, bool orderByColumn, int gridWidth, bool includeInGrid = true)
    {
        DatabaseRowObject.DatabaseColumnObject column = new DatabaseRowObject.DatabaseColumnObject();
        column.DataBaseTableColumnName = databaseColumnName;
        column.DataGridColumnName      = dataGridColumnName;
        column.OrderByColumn           = orderByColumn;
        column.DataType          = dataType;
        column.IncludeInDataGrid = includeInGrid;

        columnDictionary.Add(columnDictionary.Count + 1, column);
        gridIndexByColumnName.Add(databaseColumnName, gridIndexByColumnName.Count);
    }
        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);
        }