How do I capture the button's click event of a DataGridView column?

M

maarif

I'd created a Template column on my DataGridView which contains a
textbox and a button that is shown while on Edit mode.
How do I capture the button's click event?
I don't want to use the CellClick() event, I just want to capture the
button click event?
 
I

Ignacio Machin ( .NET/ C# MVP )

I'd created a Template column on my DataGridView which contains a
textbox and a button that is shown while on Edit mode.
How do I capture the button's click event?
I don't want to use the CellClick() event, I just want to capture the
button click event?

You can assign an event handler when you create the control. then it
will work as usual
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top