You can disable to edit some column and make other read only from DataGridview in Windows Programming, For some special circumstances like on a shop sales bill editing . A user need to change product, quantity and rate but not Total . Total will be calculated by product of rate and quantity. If Total provide by user then there may be possibility to wrong input.
DataGridview has property column that is use to disable or enable edit .you can edit column by column index or column number.
dataGrid.Columns(0).ReadOnly = True
dataGrid.Columns(1).ReadOnly = True