标签: c# windows forms
我正在使用datagridview控件,在此网格中,用户可以编辑固定列的值。 我希望用户只能写出numaric值(例如1,2,443等)
我不确定datagridview的哪个事件我必须编写此代码以及捕获值的代码是什么
答案 0 :(得分:3)
检查这些文章:
Walkthrough: Validating Data in the Windows Forms DataGridView Control
How to: Validate Data in the Windows Forms DataGridView Control
Walkthrough: Handling Errors that Occur During Data Entry in the Windows Forms DataGridView Control
Working with the DataGridView Control