title: Data bound DataGridView show new row symbol
body: <p>I have an C# (.Net 3.5) application and I am trying to force/show the NewRow symbol (* - asterick/star) in my data bound data gridview.  My data grid view is bound to a generic list.</p>
  
  <p><strong>class myRecordRow:</strong></p>
  
  <pre><code>class myRecordRow {
      private string _recordName;
      private string _recordLocation;
      public string RecordName { 
          get { return _recordName; }
          set { _recordName = value; } 
      }
      public string RecordLocation { 
          get { return _recordLocation; }
          set { _recordLocation = value; }
      }
      public myRecordRow() {
          _recordName = string.Empty;
          _recordLocation = string.Emtpy;
      }
      public myRecordRow(string name, string location) {
          _recordName = name;
          _recordLocation = location;
      }
  }
  </code></pre>
  
  <p><strong>class myRecord:</strong></p>
  
  <pre><code>class myRecord {
      private List&lt;myRecordRow&gt; _recordRows;
      public List&lt;myRecordRow&gt; RecordRows { 
          get { return _recordRows; }
          set { _recordRows = value; }
      }
  }
  </code></pre>
  
  <p>Now in my Winform <strong>form1_Load()</strong> event, I have the following:</p>
  
  <pre><code>private form1_Load() {
      BindingSource bindingSource1 = new BindingSource();
  
      myRecord rec = new myRecord();
      myRecordRow newRow = new myRecordRow("name1", "location1");
      myRecordRow newRow2 = new myRecordRow("name2", "location2");
      rec.RecordRows.Add(newRow); rec.RecordRows.Add(newRow2);
  
      dataGridView1.AutoGenerateColumns = false;
      dataGridView1.AllowDrop = true;
      dataGridView1.AllowUserToAddRows = true;
      int colIndex = dataGridView1.Columns.Add("RecordName", "myRecord Name");
      dataGridView1.Columns[colIndex].DataPropertyName = "RecordName";
      colIndex = dataGridView1.Columns.Add("RecordLocation", "myRecord Location");
      dataGridView1.Columns[colIndex].DataPropertyName = "RecordLocation";
  
      bindingSource1 = new BindingSource();
      bindingSource1.DataSource = rec.RecordRows;
      dataGridView1.DataSource = bindingSource1;
  }
  </code></pre>
  
  <p>NOTE: I have drag &amp; drop events that will properly add data to the underlying datasource (the generic list).  </p>
  
  <p>When my form is 1st loaded, my data grid view is populated with the 2 entries but there is no NewRow() (the one with the asterick/star symbol) displayed - how do I get my datagridview to show a NewRow??  Also, once the user starts adding data (by dragging &amp; dropping) I want the NewRow to be displayed as well.  </p>
  
  <p>The main reason for the NewRow to be displayed is to allow another (alternative) method of added data - by typing in the necessary data in either cell/column.  I've got my databinding working with drag/drop but can't seem to get the NewRow to be displayed so users can start editing the cells.  And I would like to not use a button to "insert" a new row into my underlying data source.</p>
  
  <p>Any assistance/help is appreciated.  I've looked through this forum and found answers that will "hide" the NewRow - mine is the opposite, especially with data bounded datagridview.  Thank you.</p>
  
  <ul>
  <li>Lorentz</li>
  </ul>