I have a pair of questions.. I am quite new to this gridview in asp.net using C#.. I have used the following code to bind the sql database table from my gridview.
SqlDataAdapter da = new SqlDataAdapter("select customerid, customername from table",con); ds.Clear(); da.Fill(ds); gridview.datasource=ds; gridview.databind();
And set the autogenerate columns property to false then add a databound with a datafield that pertains to a column of my table.
1.) How to make the rows of a specific column to be hyperlink. I believe it goes something like <asp:Hyperlink>.
2.) After making the rows of a column to be hyperlink, how could I redirect the link to its corresponding page? What I mean is, if I click a hyperlink which is the primary key of a specific record in my SQL database table, it will show the records with the use of textbox or label.
Edited by AngelicOne: n/a