For example:var context = new Student Entities(); var students = from c in context.

Aside from that I have also move the form fields inside a Panel control for validation purposes and removed the Read Only attribute for each Text Box.

Now the next step if we are going to populate the Drop Down List with the list of customers and populate the form with the customers information based on the customer ID selected from the Drop Down List.

Saving data in the disconnected scenario is a little bit different than in the connected scenario. Here, if the key property value is zero then we will consider it a new entity and so we will set the Added state.

If the key property value is greater than zero, then it means it is an existing entity and so we will set the Modified state.

, which you can then use to create a query using LINQ to Entities.

Executing the query against the Gem Fire XD datasource returns either a single object or a collection of objects, which you can use to access the query results.

Free counters Added on January 19,2012 Follow Me @vmsdurano A bit About Me Disclaimer The opinions expressed herein are my own personal opinions and does not represent the opinions of my employers.

Nor does it represent the opinion of my dog, because I don’t have one. In this example I’m going to extend a little bit of what I have demonstrated in my previous example.

could you help me please, Get Customer Info(int customer ID) { using (Northwind Data Context context = new Northwind Data Context()){ return(from c in context.

Here we are binding a Grid View and insert, update and delete records. Place Link Button Edit and Delete in Item Template, Link Button Update and Cancel in Edit Tamplate and Link Button Insert in Footer Template of Gridview's column. Fire Grid View's Row Editing event for Link Button Edit. Fire Grid View's Row Updating event for Link Button Update. Fire Grid View's Selected Index Changing event for Link Button Insert. Fire Grid View's Row Deleting event for Link Button Delete. Fire Grid View's Row Canceling Edit event for Link Button Cancel. Set Command Name propery of Link Buttons according to their respective event. Set Grid View's Data Key Names Property to record ID (ID=Primary/Unique key of student table) 9.

Net Question Answer site, specially started to allow visitors of this site ask their doubts and queries. Just click the Ask Now button and ask your question now.