Introduction
This is one of the way to make a column at any index readonly.
When datagrid is bounded to the datasource, the column and rows are genrated in the datagrid. This means datagrid must have the properties of the datasource. if the column in datasource is readonly then it must be apprear as readonly. Same thing I used to make the datagrid column readonly.
this is just a piece of code..
DT.Columns(0).ReadOnly = True '// Make the column(0) readonly and assign to DataGrid.
Datagrid!.DataSource = DT
where DT is datatable used to collect the data from database and is datasource to the datagrid Datagrid1.
For further editing make the column readonly= false and make changes and again turn it into readonly.
One can changed the index (0) of datatable to any index making that column / more than one column / all coulmn readonly.
if this way works , this will save your tedious job.
Thanks.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.