Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GridViewRowEventArgs::Row Property

 

Gets the row being created or data-bound.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
property GridViewRow^ Row {
	GridViewRow^ get();
}

Property Value

Type: System.Web.UI.WebControls::GridViewRow^

A GridViewRow object that represents the row being created or data-bound.

Use the Row property to access the properties of the row being created or data-bound. To access a specific cell in the row, use the Cells property of the GridViewRow object contained in the Row property. You can also determine which row type (header row, data row, and so on) is being created by using the RowType property of the GridViewRow object.

The following example demonstrates how to use the Row property to access the properties of the row being bound to data.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft