Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有一个内部带有中继器的表单视图,然后是嵌套在中继器内的数据列表。如果我在表单视图的数据源中有一个更新命令,我能否将数据列表中的绑定值与表单视图的 DS 中的参数相关联?
您始终可以使用 .NamingContainer 向上到具有所需数据的容器,并通过 .DataItem 访问。
线条周围的东西:
((ContainerType)Container.NamingContainer.NamingContainer).DataItem ...