I have a window that contains a ListGrid. The grid applies the setFieldState(stringstate) method to rearrange the headers to the users preferences. I have applied the setShowRowNumbers(true). The first time I open the window with no saved state, the row number column appears as the first column but after rearranging the headers, closing the window and reopening it (a new instance of the window), the row number column is now at the end of the list grid.
ex of code
ListGrid mainTable = new ListGrid();
mainTable.setFields(thisListGridFieldarray);
if (!stringstate.equals("")) {
mainTable.setFieldState(stringstate);
}
mainTable.setShowRowNumbers(true);
VLayout mVLayout= new VLayout();
mVLayout.addMember(mainTable);
Window.this.addChild(mVLayout);
Why does the program not set the row column at the beginning of the grid when applying a field state to it?
ex of code
ListGrid mainTable = new ListGrid();
mainTable.setFields(thisListGridFieldarray);
if (!stringstate.equals("")) {
mainTable.setFieldState(stringstate);
}
mainTable.setShowRowNumbers(true);
VLayout mVLayout= new VLayout();
mVLayout.addMember(mainTable);
Window.this.addChild(mVLayout);
Why does the program not set the row column at the beginning of the grid when applying a field state to it?
Comment