/// <summary>
        /// Filters the STV log.
        /// </summary>
        private void FilterStvLog()
        {
            if (lkAccount.EditValue != null)
            {
                var iss = new IssueDoc();
                gridReferences.DataSource = lkRoute.EditValue == null ? iss.GetDistinctIssueDocmentsForAccount(Convert.ToInt32(lkAccount.EditValue), chkDeliveryNotes.Checked) : iss.GetDistinctIssueDocmentsForAccountAndRoute(Convert.ToInt32(lkAccount.EditValue), Convert.ToInt32(lkRoute.EditValue), chkDeliveryNotes.Checked);

                // apply the filter
                txtFilterFacilityName_EditValueChanged(null, null);
                // show details of the first entry in the table
               // gridViewReferences_FocusedRowChanged(null, null);

            }
        }