• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 269
  • Last Modified:

windows forms editable gridview

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
metro156
Asked:
metro156
  • 4
  • 3
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
vb? c#? EF? ADO.Net? can you provide us some code that you have?
0
 
metro156Author Commented:
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
 
Éric MoreauSenior .Net ConsultantCommented:
can you show some code? is your entity loaded from a view or a stored proc ?
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
metro156Author Commented:
It is load from a stored procedure. See attached code.
Experts-GridViewCOde.txt
0
 
metro156Author Commented:
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
 
Éric MoreauSenior .Net ConsultantCommented:
this is where I was heading to. This is why I asked for these important information
0
 
metro156Author Commented:
I thought so after reading the article.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now