GridView Anidado January 13, 2012
Posted by juanpablo1manrique in Developer.Tags: .NET
trackback
El codigo dice más que mil palabras
<asp:GridView ID=”gvchatParticipation” runat=”server” AutoGenerateColumns=”false” >
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton runat=”server” ID=”lkb” Text='<%# Bind(“Title”) %>’></asp:LinkButton>
<asp:GridView ID=”gvchatParticipationDetail” runat=”server” AutoGenerateColumns=”false” DataSource='<%# Bind(“UsersInRoom”) %>’ >
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton runat=”server” ID=”lkb” Text='<%# Eval(“CompleteName”) %>’ >LinkButton</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
Esto evitará errores como:
- The ‘DataSource’ property cannot be set declaratively.
- The server tag is not well formed.
- A call to Bind was not well formatted. Please refer to documentation for the correct parameters to Bind.
- ‘Entity’ does not contain a property with the name ‘Title4’
Comments»
No comments yet — be the first.