DataTable绑定到GridView时,RowDataBound事件

简介:
        protected void EgvPhotoAdvertisement_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                System.Data.DataRowView dt = (System.Data.DataRowView)e.Row.DataItem; 
                string imgPath = dt.DataView[e.Row.RowIndex]["UploadFiles"].ToString();
                ... ...
            }
        }
目录
相关文章
|
数据库 算法 缓存