Monday, December 05, 2005

Binding of DictionaryBase object with Datagrid instead of Collection Object

Following excerpts demonstrate how we can bind dictionary object with datagrid.

<asp:Label id="Label1" runat="server" Width="64px">
<%#((DictionaryEntry)Container.DataItem).Key %>
<br>
<%# ((TestApplication.ContactsInfo)((DictionaryEntry)Container.DataItem).Value).age%>

No comments: