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






Represents an individual data item when ComboMode is set to MultipleColumns.

Represents an individual data item when ComboMode is set to MultipleColumns.

Object Model

WebComboCell Class

Syntax

Visual Basic (Declaration) 
<DescriptionAttribute()>
<SerializableAttribute()>
Public Class WebComboCell 
   Inherits ISNet.WebUI.NamedObjectBase
   Implements ISNet.ICopyable, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize, ISNet.WebUI.INamedObject 
Visual Basic (Usage)Copy Code
Dim instance As WebComboCell
C# 
[DescriptionAttribute()]
[SerializableAttribute()]
public class WebComboCell : ISNet.WebUI.NamedObjectBase, ISNet.ICopyable, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize, ISNet.WebUI.INamedObject  
Delphi 
public class WebComboCell = class(ISNet.WebUI.NamedObjectBase, ISNet.ICopyable, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize, ISNet.WebUI.INamedObject)
JScript 
DescriptionAttribute()
SerializableAttribute()
public class WebComboCell 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 WebComboCell : public ISNet.WebUI.NamedObjectBase, ISNet.ICopyable, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize, ISNet.WebUI.INamedObject  
C++/CLI 
[DescriptionAttribute()]
[SerializableAttribute()]
public ref class WebComboCell : public ISNet.WebUI.NamedObjectBase, ISNet.ICopyable, ISNet.IResetable, ISNet.Serialization.BinarySerialization.IBinarySerialize, ISNet.WebUI.INamedObject  

Example

 

The following example shows you how to bind a WebCombo to DataSet and change the color of text Madrid and Spain to red.
C#Copy Code
private void WebCombo1_InitializeDataSource(object sender, ISNet.WebUI.WebCombo.DataSourceEventArgs e)
{
    oleDbDataAdapter1.Fill(dataSet11.Customers);
    e.DataSource = dataSet11;
}

private void WebCombo1_InitializeRow(object sender, ISNet.WebUI.WebCombo.RowEventArgs e)
{
    WebComboCell city = e.Row.Cells.GetNamedItem("City");
    WebComboCell country = e.Row.Cells.GetNamedItem("Country");

    if (city.Text == "Madrid")
      city.Style.ForeColor = Color.Red;
    if (country.Text == "Spain")
      country.Style.ForeColor = Color.Red;
}

Remarks

WebComboCell allows you to obtain text and value of a cell in WebCombo when you set your combo to MultipleColumns. In addition, you can customize the appearance and behavior of each cell by configuring its properties programmatically.

The Text property is used to specify the text displayed on WebComboCell while the Value property can be used to get the value of a cell. Moreover, you can use the Style property to apply your preferred style, such as determining the color, font, backcolor, and so on. Another important property is CustomObjectAttributes which you can assign custom attributes that you want to render along with the object's tag.

Inheritance Hierarchy

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

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.