Search
 
SCRIPT & CODE EXAMPLE
 

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;
Comment

PREVIOUS NEXT
Code Example
Csharp :: pubxml environment variables 
Csharp :: C# Calculate MD5 Checksum For A File 
Csharp :: c# list any retun indec 
Csharp :: clickable table row asp.net core 
Csharp :: c sharp convert string time into 24 hours time 
Csharp :: give an alias in model .net 
Csharp :: c# get index of item in list 
Csharp :: unity rigidbody freeze rotation y z 
Csharp :: list array 
Csharp :: top down view player movement 
Csharp :: linq select max value from list 
Csharp :: serialize xml as array C# 
Csharp :: unity subtract class 
Csharp :: c# progress bar timer 
Csharp :: referans tipi nedir c# 
Csharp :: minimum of three numbers 
Csharp :: c# double without exponential notation 
Csharp :: convert video to byte array c# 
Csharp :: example of List c# 
Csharp :: write last line txt file c# 
Csharp :: double quotes in a string c# 
Csharp :: unity script template folder 
Csharp :: how create two database conction in laravel 
Csharp :: c# list object 
Csharp :: unity screen size fix 
Csharp :: install active directory windows server 2019 powershell 
Csharp :: csv to xml using xmldocument c# 
Csharp :: iis services in asp.net 
Csharp :: how to auto format c# code in visual studio 
Csharp :: c sharp type in word and calculate how much a letter is inside that word 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =