Datagrid & Not Allowing A Column Edit

  • Thread starter Thread starter CJ
  • Start date Start date
C

CJ

I have a datagrid that for the sake of example has Name, Address, City,
State and Zip

I would like to block the edit on "City" column of the grid while allowing
edits on the remaining columns.

I am missing something. A pointer in the right direction would be
appreciated

Thanks
CJ
 
Hi,

Add a tablestyle to your datagrid. Set the readonly property for
the datagrid text box column you want to be edited to true.

http://msdn.microsoft.com/library/d...tingwindowsformsdatagridvisualbasicprimer.asp

Ken
----------------------------
I have a datagrid that for the sake of example has Name, Address, City,
State and Zip

I would like to block the edit on "City" column of the grid while allowing
edits on the remaining columns.

I am missing something. A pointer in the right direction would be
appreciated

Thanks
CJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top