Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在从 excel 将数据加载到 datagridview 中。数据已正确加载,但未执行单元格的验证。我在单元格结束编辑事件中有验证码。
怎么做到呢?
只需将 DataGridView 置于编辑模式,然后退出编辑模式。那应该触发 EndEdit 事件。
DataGridView.BeginEdit(True) DataGridView.EndEdit()