Answers for "How do I allow edit only a particular column in datagridview in windows application"

C#
0

How do I allow edit only a particular column in datagridview in windows application

// Set the ReadOnly property of the other columns to true.

// Notes: You'll probably need to loop through the Columns collection and use an if statement
 
dataGridView1.ReadOnly = false;
dataGridView1.Columns[1].ReadOnly = true;
dataGridView1.Columns[2].ReadOnly = true;
Posted by: Guest on May-06-2022

Code answers related to "How do I allow edit only a particular column in datagridview in windows application"

C# Answers by Framework

Browse Popular Code Answers by Language