Пример #1
0
 private void Search(string searchText = "")
 {
     try
     {
         List <LookupModel> list = service.AdvanceSearch(LookUp.Ward, searchText);
         dgvList.AutoGenerateColumns = false;
         dgvList.DataSource          = list;
         //dgvList.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCells);
         dgvList.Refresh();
     }
     catch (Exception ex)
     {
         Utility.ErrorLog.Logging("WardDetail List", ex.Message.ToString(), ex.StackTrace.ToString());
     }
 }