WebGridRow.Item Property (Int32)

Returns the value at the specified index in the WebGridRow instance.

Namespace:  System.Web.Helpers
Assembly:  System.Web.Helpers (in System.Web.Helpers.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    index As Integer _
) As Object 
    Get
'Usage
Dim instance As WebGridRow 
Dim index As Integer 
Dim value As Object 

value = instance(index)
public Object this[
    int index
] { get; }
public:
property Object^ default[int index] {
    Object^ get (int index);
}
member Item : Object
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

  • index
    Type: System.Int32
    The zero-based index of the value in the row to return.

Property Value

Type: System.Object
The value at the specified index.

Exceptions

Exception Condition
ArgumentOutOfRangeException

index is less than 0 or greater than or equal to the number of values in the row.

Remarks

Because some columns of the WebGrid instance might not be displayed, index is specified relative to the complete data set of the row (such as the result set of a SQL query) instead of to the subset of displayed data.

See Also

Reference

WebGridRow Class

Item Overload

System.Web.Helpers Namespace