How do you programmatically set a datagrid column to readOnly?
Posted on 2006-04-15
I am working on an ASP.Net web page using VB in a Visual Studio 2003 development environment.
I have a datagrid displayed on my page that dynamically integrates data from two databases.
When a row is selected for editing, I need to programmatically set which columns are (or are not) read-only based on the data already contained in the column.
My project specification does not allowed me to hide any of the columns in my datagrid while editing. What I am looking for is the programmatic equivalent to checking the ReadOnly check box for the column.
Can anyone tell me how to do this?