Quantcast
Viewing all articles
Browse latest Browse all 12583

Click Event of a Checkbox Inserted Into a DataGridView Column

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


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>