Click here to Skip to main content
15,848,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to make read only datagridview one column.... i try this code
dataGridView1.Rows[j].Cells[0].ReadOnly = true;
but it's not working.
Posted

I want to make only one column readonly... not all datagridview.
 
Share this answer
 
Comments
Sandeep Mewara 22-Oct-12 15:26pm    
This is not an answer. Please use 'Have a Question or Comment' link to respond to an answer. It will notify answerer of your comment such that he can come back and reply. Or if needed, use Improve Question link to edit/update your question at anytime.
use dataset property of database to make it read only and pass your(above written) code with index of dataset
 
Share this answer
 
v2

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