How to bind a complex dictionary to a Gridview in asp.net?

Posted by Mehdi on Stack Overflow See other posts from Stack Overflow or by Mehdi
Published on 2010-06-06T19:16:28Z Indexed on 2010/06/06 19:22 UTC
Read the original article Hit count: 258

I've used an early binding of a dictionary<string, string> to a gridview to show Urls Text and its HRef as key-value and it works like a charm. But since I want to replace the dictionary with this one :

dictionary<string, LinkInfo>

the binding goes wrong! Should I handle some events like as onItemDataBound or something? and the LinkInfo structure is:

public struct LinkInfo{
    public string href;
    public bool Enabled;
}

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET