title: import data from csv file to datagrid view which has one of checkbox column using c#
body: <p>I'm using the code shown below to extract contents of cvs file to datagrid view, the following code helped me to extract all content of csv file but while assigning that data to datagrid view giving major problem.
  As my csv file have only two text data columns and my datagrid view contains three columns one of them (first column) is checkbox column and remaining are textbox columns. And initially i want my checkbox column as unchecked and by clicking one on the checkbox my entire row should get selected.</p>
  
  <p><strong>Here is my code:</strong></p>
  
  <pre><code>private void BtnBrowseCSV_Click(object sender, EventArgs e)
      {           
          this.BrowseCSV.Filter = "csv files|*.csv";
          DialogResult result = BrowseCSV.ShowDialog();            
  
          if (result == DialogResult.OK)
          {
              CSVFilePathTxtbx.Enabled = true;
              CSVFilePathTxtbx.Text = BrowseCSV.FileName;
          }
  
          CSVFile = CSVFilePathTxtbx.Text;           
          try
          {
              string[] fileContent = File.ReadAllLines(CSVFile);
  
              //Checks fileContent count &gt; 0 then we have some lines in the file. If = 0 then file is empty
              if (fileContent.Count() &gt; 0)
              {                   
                  for (int i = 1; i &lt; fileContent.Count(); i++)
                  {
                      string[] rowData = fileContent[i].Split(',');
                      dtgrdvwUsersList.Rows.Add(rowData);
                      //dtgrdvwUsersList.Rows.Add(false, rowData[0], rowData[1]);
                  }
              }
          }
          catch (Exception)
          {
              throw;
          }
  
          BtnNext.Enabled = true;
  }
  </code></pre>