ASPxGridView.GetDataRow(Int32) Method
Returns a DataRow object that represents the specified row.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
visible |
Int32 | An integer value that identifies the row. |
#Returns
Type | Description |
---|---|
Data |
A Data |
#Remarks
The GetDataRow method returns an object that represents a record in a data source. To do this, the ASPxGridView must be bound to a data source. Otherwise, if the grid isn’t bound, the GetDataRow method automatically calls the ASPxWebControl.DataBind method.
In some instances, for example, when handling the ASPxGridView.HtmlRowCreated or ASPxGridView.HtmlRowPrepared event, forcing the data binding can reset values entered by an end-user into editors contained within templates. To avoid this, you should disable the grid’s ASPxGridView.EnableRowsCache option or bind the grid when the page is being initialized or loaded (within the Page_Init or Page_Load event handlers).
Note
Since the Get