我使用了 adictionary<string, string>
到 gridview 的早期绑定来将 Urls Text 及其 HRef 显示为键值,它就像一个魅力。但是因为我想用这个替换字典:
dictionary<string, LinkInfo>
绑定出错了!我应该处理诸如 onItemDataBound 之类的事件吗?LinkInfo结构为:
public struct LinkInfo{
public string href;
public bool Enabled;
}