We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Allow editing in Linq to SQL Datagridview

McGurk1
McGurk1 asked
on
Medium Priority
675 Views
Last Modified: 2012-05-11
Using L2Q I fill a datagridview with records.  One column has checkboxes that I want the user to check if the record is to be deleted.  However, the dgv does not allow the box to be checked.  The error says it is read only.   What do I need to do to allow editing?
   
Dim currBDocs = From d In db.Documents Order By d.LastModifiedDate Ascending _
                      Select d.DocID, d.LastModifiedDate, d.DocTitle, d.DeleteFromDB

        dgvBDocs.DataSource = currBDocs

Open in new window


Thanks for any help on this.
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2014
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.