How do you bind a gridview column to a subclass value?

前端 未结 4 461
失恋的感觉
失恋的感觉 2020-12-20 19:57

I have a ASP.net gridview that I am trying bind to. My DataSource has a collection and 2 of the columns I am binding to are part of a subclass. My DataSource has a subclas

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-20 20:41

    Mark,

    I am 99.9% sure that you will have to handle this in the codebehind on the ItemDataBound event for the individual row.

    Remember you can get the whole databould object from e.Item.DataItem

提交回复
热议问题