private void RefreshGrid(string propertyName, bool changeSort) { gridView.AutoGenerateColumns = true; list = Business.GetList(cnString); list = Sort(list, propertyName, changeSort); gridView.DataSource = list; gridView.Columns["IsNew"].Visible = false; gridView.Columns["IsDirty"].Visible = false; gridView.Columns["IsValid"].Visible = false; gridView.Columns["IsDeleted"].Visible = false; }
// this will have to be abstract private void DeleteObject(object key) { Business.Delete((int)key, cnString); }