Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Devexpress MVC Gridview BinaryImage Picture

settings.Columns.Add(column =>
    {
        column.SetDataItemTemplateContent(c =>
        {
            Html.DevExpress().BinaryImage(
                imageSettings =>
                {
                    imageSettings.Name = "PhotographOfCommodity" + c.KeyValue;
                    imageSettings.Width = 50;
                    imageSettings.Height = 50;
                })
                .Bind(DataBinder.Eval(c.DataItem, "PhotographOfCommodity")).Render();
        });
    });
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Devexpress #MVC #Gridview #BinaryImage #Picture
ADD COMMENT
Topic
Name
8+3 =