I have a checkbox control inserted into a column in a DataGridView. What is the c# syntax to use the click event of the control?
DataGridViewCheckBoxColumn checkboxColumn = new DataGridViewCheckBoxColumn(); { checkboxColumn.HeaderText = "Stock?"; checkboxColumn.Name = "stock"; checkboxColumn.AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells; checkboxColumn.CellTemplate = new DataGridViewCheckBoxCell(); checkboxColumn.ReadOnly = false; } dgvPartsSpares.Columns.Insert(5, checkboxColumn);
REvans