private void Display() { try { List <Mobile> mobiles = _mobileManager.ShowData(); if (mobiles != null) { showMobileGridView.Columns.Add("SerialNumber", "SI#"); showMobileGridView.DataSource = mobiles; } else { showMobileGridView.Columns.Clear(); } } catch (Exception exception) { MessageBox.Show(exception.Message); _mobileManager.CloseConnection(); } }