Ejemplo n.º 1
0
        public QueryColumnInfo(int pos, string l, string t)
        {
            position  = pos;
            label     = l;
            maxLength = label.Length;
            // dbColumn = Parser.GetDbColumnAtIndex(pos, label);
            sqlDataType = t.ToLower();
            dataType    = QObject.GetTypeForSqlType(sqlDataType);

            width = defaultWidth;
            // the first column can only be left aligned due to limiation of control
            alignment = pos > 0 && isNumeric ? HorizontalAlignment.Right : HorizontalAlignment.Left;
        }