Intersoft WebCombo Documentation
WebComboColumn Class
Members  Example  See Also  Send Feedback
ISNet.WebUI.WebCombo Namespace : WebComboColumn Class






The Column object contains properties to customize basic column information such as ColumnType, HeaderText and Width. This class should be used only when ComboMode is set to MultipleColumns.

The Column object contains properties to customize basic column information such as HeaderText and Width. This class should be used only when LayoutSet.ComboMode is set to MultipleColumns

Object Model

WebComboColumn Class

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute()>
<SerializableAttribute()>
Public Class WebComboColumn 
   Inherits ISNet.WebUI.NamedObjectBase
   Implements ISNet.ICopyable, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize, ISNet.WebUI.INamedObject 
Visual Basic (Usage)Copy Code
Dim instance As WebComboColumn
C# 
[DescriptionAttribute()]
[SerializableAttribute()]
public class WebComboColumn : ISNet.WebUI.NamedObjectBase, ISNet.ICopyable, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize, ISNet.WebUI.INamedObject  
Delphi 
public class WebComboColumn = class(ISNet.WebUI.NamedObjectBase, ISNet.ICopyable, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize, ISNet.WebUI.INamedObject)
JScript 
DescriptionAttribute()
SerializableAttribute()
public class WebComboColumn extends ISNet.WebUI.NamedObjectBase implements ISNet.ICopyable, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize, ISNet.WebUI.INamedObject 
Managed Extensions for C++ 
[DescriptionAttribute()]
[SerializableAttribute()]
public __gc class WebComboColumn : public ISNet.WebUI.NamedObjectBase, ISNet.ICopyable, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize, ISNet.WebUI.INamedObject  
C++/CLI 
[DescriptionAttribute()]
[SerializableAttribute()]
public ref class WebComboColumn : public ISNet.WebUI.NamedObjectBase, ISNet.ICopyable, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize, ISNet.WebUI.INamedObject  

Example

The following example shows you on how to bind WebCombo and create WebComboColumn (ContactName and City) programmatically.
C#Copy Code
private void WebCombo2_InitializeDataSource(object sender, ISNet.WebUI.WebCombo.DataSourceEventArgs e)
{
    DataSet ds = new DataSet();
    oleDbDataAdapter1.Fill(ds,"Customers");
    e.DataSource =  ds;
    WebCombo2.DataTextField = "ContactName";
    WebCombo2.DataValueField = "CustomerID";
}

private void WebCombo2_InitializeLayout(object sender, ISNet.WebUI.WebCombo.LayoutEventArgs e)
{
    e.Layout.ComboMode = Mode.MultipleColumns;
    WebComboColumn a = new WebComboColumn("ContactName");
    WebComboColumn b = new WebComboColumn("City");
    WebCombo wc = (WebCombo) sender;
    wc.Columns.Add(a);
    wc.Columns.Add(b);  
}

Remarks

WebComboColumn provides powerful and easy-to-use control to display multiple column. Using WebCombo.NET Designer, user can determine the column structure and the column sequence that will be displayed, choose what type of column, determine the header text and the width of column, and so on. As always, you can also configure the WebComboColumn programmatically. 

Creating WebComboColumn using Designer is quick and easy. After you have binded a WebCombo to a data source, open the WebCombo.NET Designer, then choose Column in the left-pane tree view. Click Add button to add a new column in WebCombo. In BaseFieldName property, choose the column name that you want to display. You can repeat this step to add more columns. For instance, if you use "Customer" Table, you can add CompanyName, ContactName, and City column.

The column's sequence can be arranged by using the Move Down and Move Up button. For example, column ContactName is previously in the second sequence. Click Move Up button and the ContactName will be displayed in the first sequence. You can also determine the style of WebComboColumn by configuring the ColumnType, HeaderText, and Width.

You can also create the WebComboColumn programmatically, like shown in the example above. 

Inheritance Hierarchy

System.Object
   ISNet.WebUI.WebUIBaseClass
      ISNet.WebUI.NamedObjectBase
         ISNet.WebUI.WebCombo.WebComboColumn

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 Intersoft Solutions Corp. All Rights Reserved.