私は gridView を持っています。.
<asp:GridView ID="GridAll" runat="server">
</asp:GridView>
そしてコードビハインド。.
protected void BindGrid()
{
conn = new SqlConnection(connString);
cmdBind = new SqlCommand("SELECT Name, Department, Year FROM UserProfile",conn);
conn.Open();
reader = cmdBind.ExecuteReader();
GridAll.DataSource = reader;
GridAll.DataBind();
reader.Close();
conn.Close();
}
それは正常に動作します。. . ここで、グリッド ビューにすべての行をリンクとして表示して、リンクをクリックすると詳細が表示されるようにします。.
どうすればこれを達成できますか?