Solved

windows forms editable gridview

Posted on 2014-07-30
7
265 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 70

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 70

Expert Comment

by:Éric Moreau
ID: 40231734
can you show some code? is your entity loaded from a view or a stored proc ?
0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

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 70

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
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 use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

828 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