DotNetBar Third party controls SupergridControl Show pictures in

1、 Set up SuperGridControl:

SuperGridControl Of GridColumn Of EditorType Set to :GridImageEditControl

2、 Put the data List<T> Fill in the value of the corresponding field , Use ImageToByte.Byte_Image() The method of byte converting picture :

List<AddModel.Add_GoodsInfoModel> AddGoodsInfo = new List<AddModel.Add_GoodsInfoModel>();

AddModel.Add_GoodsInfoModel AddGoodsInfoModel = new AddModel.Add_GoodsInfoModel();

AddGoodsInfoModel. Commodity images = ImageToByte.Byte_Image(GPIService.QueryByPictureId(GoodsList[count].PrctureId.Value).PictureValue);

3、 Data binding :               

sup_goods.PrimaryGrid.DataSource = AddGoodsInfo;

4、 Automatic line spacing adjustment :

sup_goods.PrimaryGrid.DefaultRowHeight = 0;

DotNetBar And SupergridControl display picture , More related articles on automatic line spacing adjustment

  1. C# WPF Show pictures and video display EmuguCv、AForge.Net test ( To continue )

    Introduce This article is followed by the above <C# WPF Show pictures and video display EmuguCv.AForge.Net test > Written , Let's take a look at the above first , Because some of the code needs to be understood . Add And then the code above , We can do it on the event handler ...

  2. QT Use scrollarea display picture , Perfect solution

    demand : Click on the interface “ display picture ” Button , Would call scrollarea Window display picture , The window size can be adjusted automatically according to the image size , But the maximum is 1024*768, If the picture is too large, there should be a scroll bar to display it IDE Environmental Science : QT Creator ...

  3. img Show only part of the picture or css Set the background image to display only the specified area of the image

    17:14 2016/3/22img Show only part of the picture or css Set the background image to display only the specified area of the image background-position: 100% 56%; Set which coordinate area of the background image to display , Picture left ...

  4. python Convert the picture to Framebuffer Raw data format ( The terminal displays pictures )

    To be in ubuntu The terminal displays pictures or on the board LCD display picture ,Framebuffer It's an easy-to-use interface , Write pixel information directly . But ordinary pictures have header information or different encoding formats , Directly into Framebuffer Is it obvious ...

  5. Chrome New console play -console Show pictures and style text

    Interested students can copy and paste the code at the end of the article to the console to play . Go for Code In normal mode , Generally speaking, only to console The console outputs simple text messages . But to make the output more elegant and easier to read , except cosole.lo ...

  6. How to use SOIL stay VS2012 Of C++ Display pictures in the environment

    Let's see the effect first . It's a boring feature .... First of all, say , I didn't do this for displaying images in the console ...( It seems boring ) It's because I want to use it C Make a game :http://q.cnblogs.com/ ...

  7. Qt Adaptive size display picture , Add menu

    Because the following image processing needs UI,OpenCV I don't know how to bring it with me ,MFC I'm too lazy to learn . Listen to the students Qt Pretty good , Just use Qt do UI 了 . This article mainly introduces three contents : stay Qt Creator Use in OpenCV2.Qt Adaptive display of pictures in ...

  8. EmguCV Control Emgu.CV.UI.ImageBox And C# picturebox The display picture is flashing continuously

    In the last one ,EmguCV(OpenCV) Achieve efficient display of Chinese characters and overlay   Video overlay and display are realized , But there are problems , Namely Emgu.CV.UI.ImageBox And C# picturebox Flickers when the picture is displayed , especially ...

  9. Showing pictures of ( Customize ) toast Toast

    Generally, when we prompt, we directly prompt the text , Actually Toast You can also display pictures Common methods Toast.makeText(context,text,duration) This returns a Toast object toast.setDu ...

Random recommendation

  1. jquery EasyUI

    http://stackoverflow.com/questions/9103633/how-to-make-drag-and-drop-docking-panels 13:18:02 F1 2015 ...

  2. Higher order c++

    A template is a macro . Can the template go one step further ? http://perilla.codeplex.com/ enhanced c++ template grammar: rule 1: c++ identifier ...

  3. stay JSP Dynamic web page output 99 multiplication table

    <% StringBuffer sb = new StringBuffer(); ; i <= ; i++){ ; j <= i; j++){ sb.append(j + " ...

  4. DELPHI Excellent open source frameworks :QDAC,MORMOT,DIOCP

    DELPHI Excellent open source frameworks :QDAC,MORMOT,DIOCP Programmers do any language program development to a certain level , If you want to improve , You have to get in touch with and learn to use good open source frameworks . MORMOT Encapsulates the WINDOWS Abreast of the times H ...

  5. [ Roof placement ] How to open in a browser PDF File and realize preview ideas and code

    Writing a project encountered a problem that needs to be opened in a browser PDF Problems with documents . The final effect is as follows : In fact, it is simply to open it in the browser pdf file , And it has a preview like border . In fact, I often see similar pages on the Internet , Open it in a browser pdf writing ...

  6. web And ios Switch button

    This is the switch , The code is from weui It's a copy from the Internet . as for weui Baidu yourself ^_^~ The switch code is as follows : <!DOCTYPE html> <html lang="en"&g ...

  7. h5 Preview available picture ajax Upload ( Make up for ), Background data acquisition method ---php

    The principle is First get , Then manually transfer the file path , Otherwise, it will be automatically deleted by the server demo as follows : <?php header('content-Type:text/html;charset=utf-8'); $fil ...

  8. About Linux Thinking about document authority

    Linux File system each file is divided into inode and block,inode It contains some basic information ( file name , type , length , Modification time , Permission waiting ), And point to... That contains the real content of the file block, And directory is a kind of file , Its block Within the ...

  9. django Create pagination

    The front desk html Code <!DOCTYPE html> <html lang="en"> <head> <meta charset=" ...

  10. libevent Personal understanding

    1. Using a pre declaration to c Language based on the encapsulation operation . That is to say include To prevent event.h Equal header file , Only... Is exposed in these header files struct The statement does not reveal its definition , For such as event_base And so on ...