DataSource of the GridView Like : DataTable dt = new DataTable(); dt.Columns.Add("FilePath"); DataRow dr = dt.NewRow(); dr[0] = "~//Images/DSC00573.JPG"; dt.Rows.Add(dr); dr = dt.NewRow(); dr[0] = "~//Images/DSC00574.JPG"; dt.Rows.Add(dr); GridView1.DataSource = dt; GridView1.DataBind();