Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图用这些代码设置列标题,但它们没有用。我不知道该怎么办。
this.headerCt.setColumnHeader(2,"Surname"); grid.getColumnModel().setColumnHeader(2,"Surname");
这有点复杂,但这是你如何做到的:
grid.headerCt.items.items[2].setText("Surname");
其中 2 是索引。