Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

set readOnly property for datagrid column via code

Status
Not open for further replies.

skitty123

Technical User
May 4, 2004
56
US
I have a datagrid with 3 columns, when doing and edit/update I want user to be able to edit only col2 and col3, so I set col1 to readonly

Now I have a button which, on click, adds a new row to the dataset that feeds this datagrid. I want to now set the readonly property of col1 to false so hat user can enter data in this column as well.

is there anyway to do this... There does not seem to be a function under datagrid1.columns[1]..?
 
There is an FAQ on this. It is in VB .NET but might give you an idea about how to go about it.

faq796-4968

-Kris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top