WebGridRow.Item Property (String)

Returns the value that has the specified name in the WebGridRow instance.

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

Syntax

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

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

Parameters

  • name
    Type: System.String
    The name of the value in the row to return.

Property Value

Type: System.Object
The specified value.

Exceptions

Exception Condition
ArgumentException

name is Nothing or empty.

InvalidOperationException

name specifies a value that does not exist.

Remarks

The name parameter refers to the name of the item in the row's data set (such as the result set of a SQL query) and not to the displayed heading.

See Also

Reference

WebGridRow Class

Item Overload

System.Web.Helpers Namespace