get values from listview to textbox in another form C#
<p>i try to get data row from listview to textbox in another form. in my listview, i only used two columns from database to display data. i use this code :</p>

<pre><code>  private void loadStudentList()
    {
        listView1.View = View.Details;
        listView1.Columns.Add("ID");
        listView1.Columns.Add("Name");
        listView1.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);
        listView1.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);

        MySqlConnection conn = ConnectionService.getConnection();
        MySqlDataAdapter ada = new MySqlDataAdapter("select * from student", conn);
        DataTable dt = new DataTable();
        ada.Fill(dt);

        for (int i = 0; i &lt; dt.Rows.Count; i++)
        {
            DataRow dr = dt.Rows[i];
            ListViewItem listitem = new ListViewItem(dr["id_student"].ToString());
            listitem.SubItems.Add(dr["name"].ToString());
            listView1.Items.Add(listitem);
        }
    }
</code></pre>

<p><a href="http://i.stack.imgur.com/HmtGZ.png" rel="nofollow">item in listview </a></p>

<p>if i click or enter an item contained in listview , it will display another form . on the form I want to display a row from my database like id , name, address and email in the textbox. and this code form call another form :</p>

<pre><code>    private void listView1_KeyPress(object sender, KeyPressEventArgs e)
    {
        if (e.KeyChar == 13)
        {
            DetailForm ti = new DetailForm();
            ti.Show();
            e.Handled = true;
        }
    }
</code></pre>

<p><a href="http://i.stack.imgur.com/wDznm.png" rel="nofollow">like this pic </a></p>

<p>is there any that can provide a solution ? thank you.</p>