[SOLVED] How to handle button click in DataGridView

Answered
0
0

Hi,

 

I have a datagridview with a button on column 1, I want to handle the event when user clicks the button, I searched online and found to handle CellContentClick, but that event is not existing in Wisej datagridview, please show me how to do it.

 

Thank you.

  • You must to post comments
Best Answer
0
0

Hi Glenn,

you can use a DataGridViewButtonColumn and handle the CellClick event of the DataGridView control or you can use a DataGridViewColumn and assign to the Control property of a cell a Button instance. When you a attach to the Click event, you can also handle this event.

Both approaches are shown in attached example.

Example was created with Wisej 2.0.22.

Best,

Jens

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.