Intersoft Support Center

Customize Column Types

In WebCombo , you can set the ColumnType to many types.

This topic will show you how to customize several ColumnTypes.

To customize ColumnType to text

  1. Right-click on the WebCombo instance and select WebCombo Designer.
  2. Choose QuickStart - Column and Rows and select one of the column.
  3. Set ColumnType to Text.
  4. Run the project. 

To utilize ColumnType to image

  1. Right-click on the WebCombo instance and select WebCombo Designer.
  2. Choose QuickStart - Column and Rows and select one of the column.
  3. Set ColumnType to Image.
  4. In WebCombo's InitializeRow events, put the following code:

    C# Copy ImageCopy Code
    private void WebCombo1_InitializeRow(object sender, ISNet.WebUI.WebCombo.RowEventArgs e)
    {
       e.Row.Cells.GetNamedItem("Column1").Image = "Images/" + e.Row.Cells.GetNamedItem("FirstName").Text + ".jpg";
       e.Row.Cells.GetNamedItem("Column1").CustomObjectAttributes = "height=20px width=10px";
    }

  5. Run the project. 

To utilize ColumnType to ImageAndText

  1. Right-click on the WebCombo instance and select WebCombo Designer.
  2. Choose QuickStart - Column and Rows and select one of the column.
  3. Set ColumnType to ImageAndText.
  4. Set CellImage to any image file. For example: "Images/customer.gif".
  5. Run the project. 

To utilize ColumnType to Custom

  1. Right-click on the WebCombo instance and select WebCombo Designer.
  2. On the QuickStart - Column and Rows and select one of the column.
  3. Set ColumnType to Custom.
  4. Run the project.
Previous Next