just displaying only one row[gridview] in the textboxes
<pre><code>protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{

    SqlConnection con = new SqlConnection(" Data Source=SYS022\\SQLEXPRESS;Initial Catalog=Bhagavan;Integrated Security=True");
    con.Open();
    SqlCommand cmd = new SqlCommand("select * from emp3", con);
    SqlDataReader dr = cmd.ExecuteReader();
     while (dr.Read())
     {



            txt_eid.Text = dr["eid"].ToString();
            txt_ename.Text = dr["ename"].ToString();
            txt_sal.Text = dr["esal"].ToString();


    }
</code></pre>

<p>my application contains 3 texboxes and a gridview If i click the edit link in the gridview(3 COLOUMNS) the respected row show display in the 3 textBOXES.my code is working as if i click on edit button it is displaying the last record of the gridview in the textboxes..can someone say what is the problem( here i connected from DB to gridview) please  say the bug the in this code . I know the other way to edit .. please help me . 
markup code</p>
