Getting the row values of the listview by just simply clicking
<p>Is there anybody can give me the exact code on how to get the row values
of the listview when it is clicked. I don't want to put my listview control
with buttons like update, or delete buttons. All I want is just a plain listview
control with displayed data and when you click any rows, it will display on my
textboxes.I have already done this in my winform app and I want to use it also in
my asp.net app. I'm not sure what eventhandler I can use in asp.net to get the values
of the listview control by clicking the row whether if its <code>ListView1_SelectedIndexChanged</code> or <code>ListView1_ItemCommand</code>
because in winform app you can even use directly the <code>ListView1_Click()</code> eventhandler by just setting its properties to fullrowselect
and mousehover. I want my listview in asp.net acts exactly that way in which before you click the row it will hover the mouse
with highlighted full row select.I just followed the format of my codes in my winform app using the code below but not sure
if that is right because it doesn't do anything.Here's my code below. Please advise. Thanks.</p>

<pre><code>protected void ListView1_SelectedIndexChanged(object sender, EventArgs e)
{

    TextBox1.Text = ListView1.Items[0].ToString();
    TextBox2.Text = ListView1.Items[1].ToString();
    TextBox3.Text = ListView1.Items[2].ToString();
    TextBox4.Text = ListView1.Items[3].ToString();
    TextBox5.Text = ListView1.Items[4].ToString();
    TextBox6.Text = ListView1.Items[5].ToString();
}
</code></pre>
