Container(容器):asp.net控件 GridGrid,GridView 对应行的容器.以及其它数据容器中各类模板(如:ItemTemplate)中对应的行。
详细如下:
GridView的每一行都是一个类型为GridViewRow的Container(容器) 对象。GridViewRow有一个属性叫DataItem,它是GridViewRow对象绑定到的基础数据对象,一般来说它就是绑定到 GridView的关系数据库数据源的一行(DataRow)。
在上面的例子中,因为GridViewRow(即GridView的一行)通过原先的数据绑定已经绑定到了一个ItemInformation对象,所以Container.DataItem可以转换为temInformation。
总之,Container是GridView的一行,而Container.DataItem是这一行所绑定的数据。
相关文章:
-
2022-12-23
-
2021-09-20
-
2022-12-23
-
2022-12-23
-
2021-09-23
-
2021-12-23
-
2021-12-14
-
2021-08-12
猜你喜欢
-
2021-10-21
-
2022-12-23
-
2022-12-23
-
2021-05-11
-
2022-01-13
-
2021-11-25
-
2021-10-18
相关资源
-
下载
2022-12-03
-
下载
2021-11-02
-
下载
2021-07-01
-
下载
2021-06-05