在.net中的ActiveX数据网格等效事件的BeforeColEdit [英] BeforeColEdit of ActiveX data grid equivalent event in .net

查看:74
本文介绍了在.net中的ActiveX数据网格等效事件的BeforeColEdit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone,



我有使用activeX datagrid的VB代码。我将VB代码转换为VB.net并用.net Datagridview替换了Activex数据网格。



现在,我看到一个带有ActiveX数据网格的事件,即 BeforeColEdit 事件。我观察到,Activex数据网格控件是只读的。我无法编辑任何值。



问题:

a)这个事件(BeforeColEdit)什么时候被触发?

b)当我在转换后的代码中使用Datagridview控件时,.net中的相应事件是什么?





请帮忙。



问候,

Joy

解决方案

< blockquote>当用户开始输入网格时(但在插入击键之前)触发BeforeColEdit事件 - 这里引用 [ ^ ]



因此,DataGridView控件中的相应事件将是 CellBeginEdit - 此处参考 [ ^ ]



你也可以找到有用的这个文章 [ ^ ]关于VB6控件和.NET控件之间的差异


Hello Everyone,

I had VB code that uses activeX datagrid. I converted the VB code to VB.net and replaced Activex data grid with .net Datagridview.

Now, I see a event with ActiveX datagrid i.e BeforeColEdit event. I observed that, the Activex datagrid control is read only. I am not able to edit any value.

Questions:
a) When will this event (BeforeColEdit) get triggred?
b) As I am using Datagridview control in converted code, what would be corresponding event in .net?


Please help.

Regards,
Joy

解决方案

The BeforeColEdit event is fired when a User starts to type into the Grid (but before the keystrokes are inserted) - reference here[^]

So the corresponding event in the DataGridView control will be CellBeginEdit - reference here[^]

You may also find useful this article [^] on the differences between the VB6 control and the .NET control


这篇关于在.net中的ActiveX数据网格等效事件的BeforeColEdit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆