Xceed Grid for WinForms v4.3 Documentation
ComboBoxViewer Constructor(Object,String,String,String,ImageArea,Size,String)


Xceed.Grid.v4.3 Assembly > Xceed.Grid.Viewers Namespace > ComboBoxViewer Class > ComboBoxViewer Constructor : ComboBoxViewer Constructor(Object,String,String,String,ImageArea,Size,String)
The data source used to populate the combobox.
The table to bind to within the dataSource.
A string that specifies the field of the dataSource from which to draw the value.
A string that specifies the field of the dataSource from which to draw the image.
An Xceed.Grid.ImageArea value representing the area where the viewer's image is displayed.
A System.Drawing.Size structure representing the size of the viewer's image.
The format with which the selected item is displayed in the combobox.
Initializes a new instance of the ComboBoxViewer class specifying its data binding information.
Syntax
'Declaration
 
Public Function New( _

   ByVal dataSource As Object, _

   ByVal dataMember As String, _

   ByVal valueMember As String, _

   ByVal imageMember As String, _

   ByVal imageArea As ImageArea, _

   ByVal imageSize As Size, _

   ByVal displayFormat As String _

)
'Usage
 
Dim dataSource As Object

Dim dataMember As String

Dim valueMember As String

Dim imageMember As String

Dim imageArea As ImageArea

Dim imageSize As Size

Dim displayFormat As String

 

Dim instance As New ComboBoxViewer(dataSource, dataMember, valueMember, imageMember, imageArea, imageSize, displayFormat)
public ComboBoxViewer( 

   object dataSource,

   string dataMember,

   string valueMember,

   string imageMember,

   ImageArea imageArea,

   Size imageSize,

   string displayFormat

)

Parameters

dataSource
The data source used to populate the combobox.
dataMember
The table to bind to within the dataSource.
valueMember
A string that specifies the field of the dataSource from which to draw the value.
imageMember
A string that specifies the field of the dataSource from which to draw the image.
imageArea
An Xceed.Grid.ImageArea value representing the area where the viewer's image is displayed.
imageSize
A System.Drawing.Size structure representing the size of the viewer's image.
displayFormat
The format with which the selected item is displayed in the combobox.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ComboBoxViewer Class
ComboBoxViewer Members
Overload List