System.Web.UI.WebControls.TableCellCollection.GetCellIndex Method

Returns a value that represents the index of the specified System.Web.UI.WebControls.TableCell from the System.Web.UI.WebControls.TableCellCollection.

Syntax

public int GetCellIndex (TableCell cell)

Parameters

cell
The System.Web.UI.WebControls.TableCell to get the index of in the System.Web.UI.WebControls.TableCellCollection.

Returns

The index of the specified System.Web.UI.WebControls.TableCell within the System.Web.UI.WebControls.TableCellCollection. The default is -1, which indicates that a match has not been found.

Remarks

Use this method to determine the index of the specified System.Web.UI.WebControls.TableCell in the System.Web.UI.WebControls.TableCellCollection. If the specified System.Web.UI.WebControls.TableCell is not found, an index of -1 is returned.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0