如何获取行中的值Gridview
并显示在中Textbox
?
不要使用此代码。而且我不想使用这段代码:
protected void GridView1_SelectedIndexChanging(object sender, GridViewSelectEventArgs e) {
LinkButton lnkButton = sender as LinkButton;
GridViewRow row = (GridViewRow) lnkButton.NamingContainer;
lblSender.Text = row.Cells[2].Text;
lblSubject.Text = row.Cells[5].Text;
txtReadMsg.Text = row.Cells[6].Text;