atomicgs12
asked on
C# How to get DataGridViewCellEventHandler in code via Designer
I have a form which I created via the designer in VS 2008. In my form I have a DataGridView control with some columns in it. Basically whay I am trying to do is implement a DataGridViewCellEventHandl er for the CellValueNeeded method via the designer.
I know if one double clicks with in the contorl designer automatically creates a xxx_CellContentClick method in the form's control.cs file along with the DataGridViewCellEventHandl er callback in the xxxControlDesigner.cs file.
I want to add DataGridViewCellEventHandl ers for CellValueNeeded, CellValuePushed, ColumnHeaderMouseClick and etc.
I thought you where not suppose to directly alter the xxxControlDesinger.cs file so how do these DataGridViewCellEventHandl ers end up there that I have seen in other code?
Thanks
I know if one double clicks with in the contorl designer automatically creates a xxx_CellContentClick method in the form's control.cs file along with the DataGridViewCellEventHandl
I want to add DataGridViewCellEventHandl
I thought you where not suppose to directly alter the xxxControlDesinger.cs file so how do these DataGridViewCellEventHandl
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER