Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to set other columns of vbflexgrid to read-only while other columns could be edited using textbox and combobox?
Posted
Updated 12-Oct-11 21:43pm
v2

You have to make it readonly cell by cell. here is link[^]
 
Share this answer
 
for (int i = 0; i < dataGridView1.ColumnCount; i++)
{
     if (i == 0)
     {
           //set to ReadOnly
           dataGridView1.Columns[i].ReadOnly = true;
     }
     else
     {
           dataGridView1.Columns[i].ReadOnly = false;
     }
}
 
Share this answer
 
set ReadOnly="True" for that column
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900