Change the properties of the DateGridView control in VS to a non-editable state

Preface

When writing the weekly bill for reconstruction of the computer room, I encountered this problem: when the administrator saw the weekly bill, he could change the data obtained in the DateGridView control at will, and then export it again, it would lose its authenticity.

So how to change the properties of the DateGridView control to be non-editable?

When right-clicking→Properties, no uneditable is found.

The solution is as follows:

When adding the DateGridView control, you can see that there is a black triangle in the upper right corner,

Click to open and you can see: DateGridView task, then remove √ and it's done!

 

Guess you like

Origin blog.csdn.net/weixin_44690047/article/details/111704925