List of Exercises

Datagridview Checkbox Column in C#

	
namespace datagridview_checkbox_column
{
  public partial class Form1 : Form
  {
    List<int> trueIndexes = new List<int>();
    public Form1()
    {
      InitializeComponent();
    }

    private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
    {
      if (e.ColumnIndex == 1 && e.RowIndex != -1)
      {
        trueIndexes.Add(e.RowIndex);
      }
    }
  }
}
	


Download the project of Visual Studio 2013 in DropBox Download


CheckBox Column in DataGridView in C# | Checked event with Selected Row


Video Thumbnail