using (DataTableAdapters.AbcTableAdapter Abc = new RRHFOEM04.DataTableAdapters.AbcTableAdapter()) { DataTable dt = Abc.Abc_GetData(); radGridView1.DataSource = dt; radGridView1.EnableFiltering = true; radGridView1.MasterTemplate.EnableFiltering = true; GridViewImageColumn imageColumn = new GridViewImageColumn(); imageColumn.Name = "ImageColumn"; imageColumn.FieldName = "Photo"; imageColumn.HeaderText = "Picture"; imageColumn.ImageLayout = ImageLayout.Zoom; radGridView1.MasterTemplate.Columns.Insert(4, imageColumn); }
in the above code table have one "Photo" column... and in this column store the image path... but in the RadGrid it is not display the image... so how can i do this... Thanx in Advance...!!!!
GridViewImageColumn col = new GridViewImageColumn("ImageColumn"); radGridView1.Columns.Add(col); foreach (GridViewRowInfo row in radGridView1.Rows) { row.Cells["ImageColumn"].Value = Image.FromFile(row.Cells["Photo"].Value.ToString()); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)