Click here to Skip to main content
12,630,410 members (28,513 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# C#4.0
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 20-Dec-12 21:33pm

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161205.3 | Last Updated 21 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100