hi how to give hyper link to inside of the gridview columns.........
here my code is given below but it was not working properly.....
please give me the correct code.........
Private Sub fillgrid()
Dim Hyper_Column
adp1 = New SqlDataAdapter(" select vendorcode , vendorname as 'Vendor_Name' from vendor_master", con)
adp1.Fill(ds, "vendors")
DataGrid1.DataSource = ds
DataGrid1.DataBind()
DataGrid1.Dispose()
Hyper_Column = New HyperLinkColumn()
Hyper_Column.HeaderText = "Vendor Code"
Hyper_Column.DataNavigateUrlField = "vendorcode"
Hyper_Column.DataNavigateUrlFormatString = "menu.aspx"
Hyper_Column.DataTextField = "vendorcode"
Hyper_Column.Target = "_self"
DataGrid1.Columns.Add(Hyper_Column)
End Sub
thank you
please help me.......