Can't edit DataGridView

In ASP.NET 3.5, I'm following this example: http://weblogs.asp.net/scottgu/archive/2007/07/16/linq-to-sql-part-5-binding-ui-using-the-asp-linqdatasource-control.aspx.  My LINQ source is coming from a DLL that I reference by project, in my asp.net app project.  In the datasource, I select the Advanced button allow LINQ to control edits and inserts.  I don't get the edit/inset options in the grid's smart tag until I select "*" in the datasource.  If I select a single column, the edit/insert options aren't in the smart tag.  What causes that?

Also, how can I make the insert option appear in the grid?
brettrAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

QPRCommented:
In order to allow edits/deletes your datasource must contain the primary key column for that table.
This way the IDE can create the SQL statements required for updates/deletes

otherwise we end up with....
Update myTable setColumn1 = "HelloWorld" where ?????

If the datasource contains the primary key (say myID) then the statement becomes
Update myTable setColumn1 = "HelloWorld" where myID = <value>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.