title: Alter Displayed Information in data-bound DataGridView
body: <p>I have a datagridview that is databound. One of the columns, which is shown below, is linked to a boolean value from an object. The method to retrieve the boolean value would be "curResultSet.Pass". Instead of saying "True" or "False" in a regular cell, I want that column to have a "Pass" icon or "Fail" icon depending on the value of "curResult.Pass".</p>
  
  <p>I am fairly certain that my method of setting a .png to an Icon is wrong, but I can worry about that later. Right now, my biggest concern is I am not sure how to set a certain Icon in the DataGridViewImageViewColumn based on the value of a Boolean as shown in my code below.</p>
  
  <pre><code>DataGridViewImageColumn imgCol = new DataGridViewImageColumn(true);
  
  foreach(RunResult curResult in curResultSet)
  {
       bindingSource1.Add(curResult);
  }
  
  resultDataGridView.AutoGenerateColumns = false;
  resultDataGridView.DataSource = bindingSource1;
  
  imgCol.Image = Image.FromFile(imageFilePath + "NG icon.png");
  imgCol.Icon = Icon.ExtractAssociatedIcon(imageFilePath + "OK icon.png");
  imgCol.ValuesAreIcons = true;
  
  resultDataGridView.Columns.Add(imgCol);
  resultDataGridView.Columns[resultDataGridView.ColumnCount - 1].DataPropertyName = "Pass";
  resultDataGridView.Columns[resultDataGridView.ColumnCount - 1].Name = "status";
  </code></pre>
  
  <p>Anyone have any idea how I can have my "OK icon.png" show when "curResultSet[].Pass == True" and have "NG icon.png" show when "curResultSet[].Pass == False"? Thanks!</p>