Solved

windows forms editable gridview

Posted on 2014-07-30
7
262 Views
Last Modified: 2014-07-31
I am having a problem with making my gridview cells be placed in edit mode. I have set the properties on the gridView that I thought would make the gridview editable. However, I cannot type into the GridView cells.
This is for a windows application. So I would need an example or tutorial on using GridViews on a windows application.
What am I missing?
0
Comment
Question by:metro156
  • 4
  • 3
7 Comments
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 40230703
vb? c#? EF? ADO.Net? can you provide us some code that you have?
0
 

Author Comment

by:metro156
ID: 40231709
I am using entity framework to load the datasource of the GridView. When I try to modify a cell, it does not let me enter any data. I know I have turned on the properties needed.
0
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 40231734
can you show some code? is your entity loaded from a view or a stored proc ?
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:metro156
ID: 40231773
It is load from a stored procedure. See attached code.
Experts-GridViewCOde.txt
0
 

Author Comment

by:metro156
ID: 40231845
I found the answer-

See article
http://stackoverflow.com/questions/5793619/binding-entity-framework-objects-to-a-datagridview-c-sharp?rq=1

Is that it is creating an anonymous type, and anonymous types are immutable - that is read only. This is why your changes do not get reflected in either the new type or in the original EF object.
0
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 40231887
this is where I was heading to. This is why I asked for these important information
0
 

Author Closing Comment

by:metro156
ID: 40231929
I thought so after reading the article.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now