D
Donkey
Hi,
Despite the many examples i can't find the right way to pass a value of
a datagrid to another form. So could someone please explain me what i
am doing wrong.
so i have a datagrid with an invisible column and a templatecolumn with
which i want to pass the value of the first column.
<asp:BoundColumn DataField="ChecklijstID" ReadOnly="True"
Visible="false" />
<asp:TemplateColumn HeaderText="Checklijst">
<itemtemplate>
<asp:HyperLink id="AttachmentLink" runat="server" Target="_blank"
DataNavigateUrlField="ChecklijstID"
NavigateUrl='<%# "Checklijst2.aspx?id={1}" %>' >
<%#DataBinder.Eval(Container.DataItem,"Checklijst")%>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateColumn>
i don't know what i have to change but now i pass always {1} and not
the value of the seleted row and column.
Despite the many examples i can't find the right way to pass a value of
a datagrid to another form. So could someone please explain me what i
am doing wrong.
so i have a datagrid with an invisible column and a templatecolumn with
which i want to pass the value of the first column.
<asp:BoundColumn DataField="ChecklijstID" ReadOnly="True"
Visible="false" />
<asp:TemplateColumn HeaderText="Checklijst">
<itemtemplate>
<asp:HyperLink id="AttachmentLink" runat="server" Target="_blank"
DataNavigateUrlField="ChecklijstID"
NavigateUrl='<%# "Checklijst2.aspx?id={1}" %>' >
<%#DataBinder.Eval(Container.DataItem,"Checklijst")%>
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateColumn>
i don't know what i have to change but now i pass always {1} and not
the value of the seleted row and column.