I would like to show the value field and the display field next to each other in the grid, but when I try it like below:
(value is the primary key and display is name)
Both columns show the name.
How can I show the same field name twice in a grid?
Code:
ListGridField pk = new ListGridField(getPrimaryKeyFieldName(), language.BenchmarkDealerGroupEditWidgetLocation());
pk.setWidth("80%");
pk.setValueField(getPrimaryKeyFieldName());
pk.setOptionDataSource(DealerGroupDS.getInstance());
pk.setDisplayField("name");
ListGridField pk2 = new ListGridField(getPrimaryKeyFieldName(), language.BenchmarkDealerGroupEditWidgetLocation());
pk2.setDisplayField(getPrimaryKeyFieldName());
pk2.setWidth("20%");
Both columns show the name.
How can I show the same field name twice in a grid?