Создайте существующий столбец в gridview в виде гиперссылки
<asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical"> <RowStyle BackColor="#F7F7DE" /> <FooterStyle BackColor="#CCCC99" /> <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" /> <EmptyDataTemplate> No Data Found </EmptyDataTemplate> <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" /> <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" /> <AlternatingRowStyle BackColor="White" /> </asp:GridView>
по коду позади меня
protected void Page_Load(object sender, EventArgs e) {DataSet dt = GetExistingRecords(); GridView1.DataSource = dt; GridView1.DataBind(); } private DataSet GetExistingRecords() { DataSet dt = new DataSet(); try { OleDbConnection thisConnection = new OleDbConnection(connStr); thisConnection.Open(); string query = "Select Call, EnteredYear, Qrt_Mnth, CreateDt, FilingFile, FilingVolSr, ProjNbr from tbl_DataTracking"; OleDbCommand command = new OleDbCommand(query, thisConnection); var myAdapptor = new OleDbDataAdapter(); //OleDbCommand command = new OleDbCommand("SELECT * FROM tbl_EStamps", thisConnection); myAdapptor.SelectCommand = command; myAdapptor.Fill(dt); thisConnection.Close(); } catch(Exception e) { Response.Write("Error -> " + e); } return dt; }<pre /> now here in my grid view i do not have bound fields. if I add bound fields the grid containsduplicates i want the first column to be hyperlink. Please tell me how to do it.