That just gets the DataGrid to be able to allow sorting. It creates abulkier DataGrid, hence the on/off option. You have to write the codefor each column that you want to sort on. Look in Help.