private void ShowClass() { ClassBLL objClass1BLL = new ClassBLL(); dgvClass.DataSource = objClass1BLL.ShowClass(); }