/// <summary> /// Called when the worksheet is sorted. Reselects the record that was selected /// prior to the sort. </summary> /// <param name="worksheet"> the worksheet being sorted. </param> /// <param name="sort"> the type of sort being performed. </param> public virtual void worksheetSortChanged(JWorksheet worksheet, int sort) { __worksheet.deselectAll(); __worksheet.selectRow(__worksheet.getSortedRowNumber(__sortSelectedRow)); }