关于Container.DataItem
来源:学生作业帮 编辑:百度作业网作业帮 分类:综合作业 时间:2024/08/07 23:21:10
关于Container.DataItem
这个是GridView上的一列.
这行中的ItemInformation 是一个类,后面的Name是他的类成员.
我想知道这里的Container.DataItem代表什么,为什么可以转换成ItemInformation .它不应该代表这个Gridview中的一列么?
这个是GridView上的一列.
这行中的ItemInformation 是一个类,后面的Name是他的类成员.
我想知道这里的Container.DataItem代表什么,为什么可以转换成ItemInformation .它不应该代表这个Gridview中的一列么?
GridView的每一行都是一个类型为GridViewRow的Container(容器)对象.GridViewRow有一个属性叫DataItem,它是GridViewRow对象绑定到的基础数据对象,一般来说它就是绑定到GridView的关系数据库数据源的一行(DataRow).
在上面的例子中,因为GridViewRow(即GridView的一行)通过原先的数据绑定已经绑定到了一个ItemInformation对象,所以Container.DataItem可以转换为temInformation.
总之,Container是GridView的一行,而Container.DataItem是这一行所绑定的数据.
在上面的例子中,因为GridViewRow(即GridView的一行)通过原先的数据绑定已经绑定到了一个ItemInformation对象,所以Container.DataItem可以转换为temInformation.
总之,Container是GridView的一行,而Container.DataItem是这一行所绑定的数据.
关于Container.DataItem
>中的Container.DataItem是什么意思
其中的Container.DataItem是干嘛用的
Eval 和 DataBinder.Eval(Container.DataItem,"")的区别
container
container.innerHTML()
container of
关于信用证条款Shipment must be effected by full container load. B/L
load in20' container
indicating complete container No
container的用法
请问,400*20’container,