I am using a DataGridView control for displaying some data. I need to enable some data and disable some data dynamically based on some values in the grid.
type form load : -
For i = 0 to Datagridview.columns.count -1
if i <> 1 then //restricted columns, 'i' is Your column index
Datagridview.Columns(i).ReadOnly = True
end if
Next