Intersoft WebCombo Documentation
How-to: Utilize image ColumnType
See Also Send comments on this topic.
Intersoft WebCombo > WebCombo Features Overview > Column Types How-to Topics > How-to: Utilize image ColumnType

Glossary Item Box

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

This topic will show you how to utilize ColumnType to image.

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.

See Also