This is a perfect example of why you should ALWAYS read the documentation first. If you'd done that, you'd have seen that the DataGridView class has a ReadOnly property. You could have seen that property with a quick look in the Properties window too. It's purpose seems fairly self-explanatory but, if you need more, you can always read about it.