Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #I #edit #column #datagridview #windows #application
ADD COMMENT
Topic
Name
4+3 =