Click here to Skip to main content
15,889,830 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Using the following code:

C#
IQueryable data = db.ExecuteQuery<mytable>("SELECT * FROM MyTable").AsQueryable();

datagridviewbindingsource.DataSource = data;</mytable>


the datagridview shows mytable just fine, but now the user is not able to add rows.

Using this code:

C#
IQueryable data = (from p in db.MyTable select p);

datagridviewbindingsource.DataSource = data;


the user is able to add rows to the datagridview. Any clue how to make this option available using the first codesnippet?
Posted
Updated 27-Sep-11 0:30am
v2
Comments
Slacker007 27-Sep-11 6:33am    
Edited: removed extra "pre" tag in your last code block to fix formatting.

1 solution

I am now using the Linq.Dynamics API. More luck on that one!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900