Click here to Skip to main content
15,882,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900