I want to add multiple parameters in sqldatasource.
Passed parameters will be changed according to user selection.
So i want to add data in gridview using code and add HyperlinkField runtime.
How To assign Hyperlink field in Grid-view run time using code behind?
This is code for gridview and sqldata source,
SelectCommand="LIST" SelectCommandType="StoredProcedure">
Dorababu MekaPosted Dec 1, 2012, 6:51 AM
public void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
HyperLinkField hyper1=new HyperLinkField();
hyper1.ID="dynamicHyperLink";
hyper1.NavigateUrl = "Navigate URL " + e.Row.DataItem;
e.Row.Cells[0].Controls.Add(hyper1); // add the position where ever u need
}