Saturday, July 15, 2006

DataGridViewButtonColumn click event

I just realized that you capture the click event for the DataGridViewButtonColumn the same way you do any other column - through the DataGridView's CellClick event - The button column does not have it's own click event! So basically what makes it a button column is not it's functionality but the picture of the button that gets drawn and the press/depress "animation." In fact none of the column types expose their own events - they all rely on capturing the DataGridViews events.

3 comments:

星火燎原 said...

THX

星火燎原 said...

thanks

Alexei said...

Thanks a lot, just what i was wondering :)