Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: 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 at 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
0 Zoltán Zörgő 300
1 Peter Leow 160
2 CPallini 120
3 BillWoodruff 120
4 CHill60 100
0 Sergey Alexandrovich Kryukov 9,423
1 OriginalGriff 6,891
2 Peter Leow 4,692
3 Zoltán Zörgő 4,344
4 CHill60 2,932


Advertise | Privacy | Mobile
Web01 | 2.8.150129.1 | Last Updated 21 Dec 2012
Copyright © CodeProject, 1999-2015
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