Link Cell
Represents a cell that displays text as a hyper-link.
Namespace: LSOne.Controls.Cells
Assembly: LSOne.Controls.ListView
Syntax
public class LinkCell : Cell
Constructors
Name | Description |
---|---|
LinkCell() | Default constructor. Initializes a new instance of the LinkCell class |
LinkCell(string) | Initializes a new instance of the LinkCell class with the given text |
LinkCell(string, System.Drawing.Color) | Initializes a new instance of the LinkCell class with the given text and link color |
Properties
Name | Description |
---|---|
LinkColor | Gets or sets the link color |
Examples
See Source\SM\Plugins\Replenishment\Views\PurchaseWorksheetView.cs from DevPack for usage examples.
row.AddCell(new LinkCell((string)item.ID));
The click on the link cell is handled in the ListView.CellAction event handler
private void lvPreview_CellAction(object sender, CellEventArgs args)
{
if (args.ColumnNumber == lvPreview.Columns.IndexOf(clmID) && args.Cell is LinkCell)
{
itemEditor.Message(this, "ViewItem", new RecordIdentifier((args.Cell as LinkCell).Text));
}
}