M
Maziar Aflatoun
Hi everyone,
I have the following code and I like to add a hidden field in each row
<asp:datagrid id="DataGrid1" style="Z-INDEX: 102; LEFT: 48px; POSITION:
absolute; TOP: 40px" runat="server"
AutoGenerateColumns="False" >
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<asp:Checkbox ID="chkSelection" Runat="server"></asp:Checkbox>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="FirstName"
HeaderText="FirstName"></asp:BoundColumn>
<asp:BoundColumn DataField="LastName"
HeaderText="LastName"></asp:BoundColumn>
</Columns>
</asp:datagrid>
Ex. something like
<asp:BoundColumn DataField="FirstName"
HeaderText="FirstName"></asp:BoundColumn>
<asp:BoundColumn DataField="LastName"
HeaderText="LastName"></asp:BoundColumn>
<input type="hidden" name="myhidden" value="<%#
DataBinder.Eval(Container.DataItem, "RowID") %>" runat=server"> which
doesn't work
Any idea?
Thank you
Maz.
I have the following code and I like to add a hidden field in each row
<asp:datagrid id="DataGrid1" style="Z-INDEX: 102; LEFT: 48px; POSITION:
absolute; TOP: 40px" runat="server"
AutoGenerateColumns="False" >
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<asp:Checkbox ID="chkSelection" Runat="server"></asp:Checkbox>
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="FirstName"
HeaderText="FirstName"></asp:BoundColumn>
<asp:BoundColumn DataField="LastName"
HeaderText="LastName"></asp:BoundColumn>
</Columns>
</asp:datagrid>
Ex. something like
<asp:BoundColumn DataField="FirstName"
HeaderText="FirstName"></asp:BoundColumn>
<asp:BoundColumn DataField="LastName"
HeaderText="LastName"></asp:BoundColumn>
<input type="hidden" name="myhidden" value="<%#
DataBinder.Eval(Container.DataItem, "RowID") %>" runat=server"> which
doesn't work
Any idea?
Thank you
Maz.