Bind DataGrid to Dictionary in ASP.NET

Posted by mcoolbeth on Stack Overflow See other posts from Stack Overflow or by mcoolbeth
Published on 2010-05-06T19:59:04Z Indexed on 2010/05/06 20:08 UTC
Read the original article Hit count: 379

Filed under:
|
|

In ASP.NET, binding a DataGrid to a list of objects is super-easy.

I end up with a row for each object in the list, and any cell in a given row is bound to a property of the corresponding object.

However, suppose one of the properties of my object is a dictionary, and each is expected to contain a specific key. Is there any way to bind one of my DataGridColumns to that dictionary key?

Thanks.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about mvc