using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace EFExample { public partial class Form1 : Form { SampleDBEntities2 model = null; public Form1() { InitializeComponent(); model = new SampleDBEntities2(); studentDataGridView.DataSource = model.Students.OrderBy(p => p.StudentId); } private void Form1_Load(object sender, EventArgs e) { } private void studentBindingNavigatorSaveItem_Click(object sender, EventArgs e) { model.SaveChanges(); } } } Please help me how to Edit The GridView. TableName :Student Column:StudentId
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)