Friday, 18 August 2017

Disable Enable Datagrid column Editing

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 pr
ovide 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.

 Example : 


dataGrid.Columns(0).ReadOnly = True

dataGrid.Columns(1).ReadOnly = True

Next Topic

No comments:

Post a Comment