/// <summary>
 /// Exports datagrid not settled insurance policies to excel file.
 /// </summary>
 private void ExportToExcelButton(object sender, RoutedEventArgs e)
 {
     ExportDatagrid.ToExcel(showNotSettledPolicyDocumentDatagrid);
 }
 /// <summary>
 /// Exports datagrid to excel file and changeing insurance policy status in database.
 /// </summary>
 private void prntButtonClick(object sender, RoutedEventArgs e)
 {
     ExportDatagrid.ToExcel(settlementDataGrid);
     ChangePolicyStatus.ForSettled();
 }