jump to navigation

GridView Anidado January 13, 2012

Posted by juanpablo1manrique in Developer.
Tags:
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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: