本文介绍了'System.Data.DataRowView'不包含名称为'Selected'的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< itemtemplate>
< asp:CheckBox ID ="CheckBox1" runat ="server" Checked =''<%#DataBinder.Eval(Container,"DataItem.Selected")%>''/>


谁能告诉我我在哪里做错了.
我也尝试过
DataBinder.Eval(Container.DataItem,"Selected")

它引发主题中提到的异常
``System.Data.DataRowView''不包含名称为``Selected''的属性

供我参考的依据:
http://www.ilearnttoday.com/c-aspnet-gridview-select-multiple-rows-in-a-grid-view-using-check-boxes

<itemtemplate>
<asp:CheckBox ID="CheckBox1" runat="server"Checked=''<%#DataBinder.Eval(Container,"DataItem.Selected") %>'' />


can anyone plz tell me where I m doing it wrong.
I have also tried
DataBinder.Eval(Container.DataItem,"Selected")

it throws an exception mentioned in subject
''System.Data.DataRowView'' does not contain a property with the name ''Selected''

for reference I m working on the basis of this article:
http://www.ilearnttoday.com/c-aspnet-gridview-select-multiple-rows-in-a-grid-view-using-check-boxes

推荐答案



这篇关于'System.Data.DataRowView'不包含名称为'Selected'的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 04:12