private void btnSearchDisplayHome_Click(object sender, RoutedEventArgs e)
        {
            string tempid      = "0";
            var    itemsSource = dataGrid1.ItemsSource as IEnumerable;

            if (itemsSource != null)
            {
                foreach (var item in itemsSource)
                {
                    var row = dataGrid1.ItemContainerGenerator.ContainerFromItem(item) as Microsoft.Windows.Controls.DataGridRow;
                    ContentPresenter contentPresenter = dataGrid1.Columns[0].GetCellContent(row) as ContentPresenter;
                    DataTemplate     editingTemplate  = contentPresenter.ContentTemplate;
                    CheckBox         chk = editingTemplate.FindName("chkSelected", contentPresenter) as CheckBox;
                    if ((bool)chk.IsChecked)
                    {
                        TextBlock tx = dataGrid1.Columns[1].GetCellContent(row) as TextBlock;
                        tempid = tx.Text;
                        break;
                    }
                }
            }
            cr.LoadDisplayHome(loginstateid.ToString(), cmbBrand.SelectedValue.ToString(), tempid, txtHomeName.Text, txtSuburb.Text);
            if (cr.SQSDisplayHome.Count == 0)
            {
                txtNoRecord.Visibility = Visibility.Visible;
            }
            else
            {
                txtNoRecord.Visibility = Visibility.Collapsed;
            }
        }