gridview,datagrid,datalist,repeater 等数据绑定的RowDataBound事件或者itemdatabound事件

gridview,datagrid(绑定事件:RowDataBound)

/****/

if (e.Row.RowType == DataControlRowType.DataRow)
        {
           
        }

/****/

datalist,repeater

if(e.item.itemtype==listitemtype.item||e.item.itemtype==listitemtype.AlternatingItem)

{

 

}

posted @ 2009-01-07 09:24  火精灵  阅读(477)  评论(0编辑  收藏  举报