int getColumnType(int index) { if (customColumnType != null) return customColumnType![index]; List<int> items = columnType[type]; if (index >= items.length) return -1; return items[index]; }