Using WinForms, C# .Net 2.0
I’m adding rows to a non bound DataGridView. I would like to have a DataGridViewButtonColumn in one of the columns that deletes that row when clicked. When I try to add a Click event to the DataGridViewButtonColumn, there does not appear to be a definition for Click.
Can anyone point me to a MSDN article or direct me to the answer?
Thanks!
The DataGridViewButtonColumn class is a container class for DataGridViewButtonCell objects. Those objects have the click events you’re looking for.
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridviewbuttoncolumn_members.aspx