G
Guest
Dear all,
I have a datagrid which is populated with a dataset as follow:
myDataGrid.DataSource = ds.Tables(0)
myDataGrid.DataBind()
Then I need to create a Hyperlink column from my grid.Clicking on that lik
will pass the content of the click link to a page. For that I add the
following to my page :
<asp:HyperLinkColumn>
DataNavigateUrlField='<% "Event.aspx?ReelId=" & Container.DataItem("ID")
%>' </asp:HyperLinkColumn>
When running my application, I get an error message saying that the field ID
is not existing in the grid datasource.
Then I check the content of my dataset which is pass to the grid as
datasource by watching the content of ds.Tables(0).Columns(0) and the name
of that first column I am interresting in is "ID".
How do you explain that it cannot bind to the column in my dataset ?
What did I do wrong ??
Thnaks for your help
regards
serge
I have a datagrid which is populated with a dataset as follow:
myDataGrid.DataSource = ds.Tables(0)
myDataGrid.DataBind()
Then I need to create a Hyperlink column from my grid.Clicking on that lik
will pass the content of the click link to a page. For that I add the
following to my page :
<asp:HyperLinkColumn>
DataNavigateUrlField='<% "Event.aspx?ReelId=" & Container.DataItem("ID")
%>' </asp:HyperLinkColumn>
When running my application, I get an error message saying that the field ID
is not existing in the grid datasource.
Then I check the content of my dataset which is pass to the grid as
datasource by watching the content of ds.Tables(0).Columns(0) and the name
of that first column I am interresting in is "ID".
How do you explain that it cannot bind to the column in my dataset ?
What did I do wrong ??
Thnaks for your help
regards
serge