how can i lock specific columns in a data gridview

how can i lock specific columns in a data gridview

So you cannot edit it. Isn't it?

.....
'1st column is set to read only
dataGridView1.Columns(0).ReadOnly = True

How about LOCKING the entire datagridview. all columns and rows.


PLs PM to me the answer.

Goto "Properties Window", select DatagridView and changed the property "ReadOnly" to "true". This will lock all rows and all columns.

ok..
I'll try it..
Thankz

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.