I am doing a asp.net Project, in which i need to populate a datagrid using a stored procedure. The stored procedure returns different column names based on the user input, but the no of columns(it returns 3 columns) returned is the same.
I have bound these columns dynamically by retrieving the column names like this.
Dim bc1 As New BoundColumn
bc1.HeaderText = "ID"
bc1.DataField = DATASET.Tables( 0).Columns(0).C olumnName.ToStr ing
Dim bc2 As New BoundColumn
....
Dim bc3 As New BoundColumn
....
But the problem in addition to this, i need to create a 4th hyperlink column which passes all the other 3 column values as three querystring parameters to another page. I have tried numerous ways but nothing works. how can it be done using dynamic hyperlink template. Or is there any other good method for doing this.
I have bound these columns dynamically by retrieving the column names like this.
Dim bc1 As New BoundColumn
bc1.HeaderText = "ID"
bc1.DataField = DATASET.Tables( 0).Columns(0).C olumnName.ToStr ing
Dim bc2 As New BoundColumn
....
Dim bc3 As New BoundColumn
....
But the problem in addition to this, i need to create a 4th hyperlink column which passes all the other 3 column values as three querystring parameters to another page. I have tried numerous ways but nothing works. how can it be done using dynamic hyperlink template. Or is there any other good method for doing this.
Comment