see
Selecting Rows by Clicking Anywhere
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchtopquestionsaboutaspnetdatagridservercontrol.asp
Selecting Rows by Clicking Anywhere
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchtopquestionsaboutaspnetdatagridservercontrol.asp
if ((itemType == ListItemType.Pager)
|| (itemType == ListItemType.Header)
|| (itemType == ListItemType.Footer)) return;
LinkButton button = (LinkButton)e.Item.Cells[0].Controls[0];
TextBox5.Text=button.Text;
TextBox6.Text=ListItemType.SelectedItem.ToString();
TextBox7.Text=e.Item.Attributes["onclick"];
TextBox8.Text=Page.GetPostBackClientHyperlink(button, "");
TextBox9.Text=button.Controls[0].ToString();都不行