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(); ... ... } }