protected override void CreateColumnCollection() { var pds = new MultiEditorsListPropertyDescriptorSQLite[1]; pds[0] = new MultiEditorsListPropertyDescriptorSQLite(this, 0, "Product #" + 0, false); ColumnCollection = new PropertyDescriptorCollection(pds); }
protected override void CreateColumnCollection() { var pds = new MultiEditorsListPropertyDescriptorSQLite[Table.Count + 3]; pds[0] = new MultiEditorsListPropertyDescriptorSQLite(this, 0, "Field", true); for (int n = 1; n < Table.Count + 1; n++) { pds[n] = new MultiEditorsListPropertyDescriptorSQLite(this, n, "Product #" + n, false); } pds[Table.Count + 1] = new MultiEditorsListPropertyDescriptorSQLite(this, Table.Count + 1, "EditorType", true); pds[Table.Count + 2] = new MultiEditorsListPropertyDescriptorSQLite(this, Table.Count + 2, "TemplateName", true); ColumnCollection = new PropertyDescriptorCollection(pds); }