Click here to Skip to main content
15,893,622 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
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
Posted

1 solution

 
Share this answer
 
Comments
praveen kadimi 21-Dec-12 3:12am    
Sorry,sir my Question is
How to perform Delete update,insert operation in Ado.netEntityDataModel

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900