Click here to Skip to main content
15,790,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Experts,

Happy Friday!
I have a windows Forms in which there is a DataGridview. I added a Checkbox column from Code behind using Now In the design part, I unchecked Enable Editing, Enable Deleting etc for the DataGridview. But If I click on check box it is not selected. If check Enable Editing in designer, it will select the checkbox when clicked. If I use Enable Editing I am giving a chance of making errors for My sales Team. (Fat figures make type something by mistake) . So I want a solution for clicking the checkbox should select the row but shouldn't allow any content editing. Can anyone suggest me please?
sudevsu 1-May-15 10:20am    
I found solution for this. But I am waiting for better solution.
John C Rayan 1-May-15 12:11pm    
Leave enable editing in design mode and during run time when the user click it trap the event at server side and disable any content edit. It should work for you.
sudevsu 1-May-15 13:02pm    
ok.thank you

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