的ItemDataBound“e.item.dataitem(QUOT;键")”与ListView控件 [英] ItemDataBound 'e.item.dataitem("key")' with ListView Control

查看:236
本文介绍了的ItemDataBound“e.item.dataitem(QUOT;键")”与ListView控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

随着ASP.NET Repeater控件,我习惯了,能够做访问在的ItemDataBound 事件处理我的数据项的值:

With the ASP.NET Repeater control, I am used to being able to access my data item values in the ItemDataBound Event Handler by doing:

e.item.dataitem("column_name")

但是,它似乎与ListView控件这是不可能的。我怎样才能访问这些数据项值?

However, it seems with the ListView control this is not possible. How can I access the data item values?

推荐答案

<一个href=\"http://stackoverflow.com/questions/858001/get-data-being-bound-to-listview-on-databound-event\">http://stackoverflow.com/questions/858001/get-data-being-bound-to-listview-on-databound-event

这篇关于的ItemDataBound“e.item.dataitem(QUOT;键&QUOT;)”与ListView控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆