... the clause AUTOCOLS instead of COLUMNS .... clause. When we use AUTOCOLS clause, XBrowse itself reads the DBSTRUCT() and builds all the columns suitably, including the sort orders. Example: [code]@ r,c XBROWSE oBrw SIZE w,h PIXEL OF oDlg ;DATASOURCE "aliasname" AUTOCOLS[/code] ...