Expand|Select|Wrap|Line Numbers
- SqlConnection con = new SqlConnection(connectionstring);
- SqlCommand cmd = new SqlCommand(strCmd, con);
- SqlDataAdapter da = new SqlDataAdapter(cmd);
- DataSet ds = new DataSet();
- DataTable dt = new DataTable();
- gv.Columns.Clear();
- DataView dv = dt.DefaultView;
- foreach (DataColumn dc in dt.Columns)
- {
- HyperLinkField hf = new HyperLinkField();
- hf.HeaderText = dc.ColumnName;
- hf.DataField = dc.ColumnName;
- //hf.NavigateUrl = "";
- gv.Columns.Add(hf);
- }
- gv.DataSource = dv;
- gv.DataBind();
Note: Above code might not work unless some modifications are made
However, as I have not set the NavigateUrl property of the HyperLinkField hf, the links are inacitve.
What I need is that when I click on a link, a panel on the same page which is previously invisible becomes visible.
How should I go about this??
Thanks a lot...