text_changed event not working
<pre><code>private void txtName_TextChanged(object sender, EventArgs e)
{
    if (dataGridView1.SelectedRows.Count == 1)
    {
        dataGridView1.SelectedRows[0].Cells["someValue"].Value = txtName.Text;
    }
}
</code></pre>

<p>When the text is changed in the text box it should be displayed in the datagrid view,if i select cell already having data then it works fine but if i select a new row(empty row) the text does not appear in the datagridview 
allow user to add row is set to true for the datagrid view.</p>
