# GetRowItem

> Retrieves a value from a row in a DataTable according to a specified column.

Retrieves a value from a row in a DataTable according to a specified column.

## Definition

**Namespace:** UiPath.Activities.System.API

**Assembly:** UiPath.System.Activities.Api (in UiPath.System.Activities.Api.dll)

## `GetRowItem(DataRow, String)`

```
Object GetRowItem(
    DataRow row,
    string columnName
)
```

`row` [DataRow](https://learn.microsoft.com/dotnet/api/system.data.datarow) : The name used to reference the DataTable row from which a value is read. The default value is `CurrentRow`.

`columnName` [String](https://learn.microsoft.com/dotnet/api/system.string) : Specify either the column number (index) or name from which the DataTable rows should be read. If this property is set, then the ColumnIndex property is ignored.

## Return value

[Object](https://learn.microsoft.com/dotnet/api/system.object)

The column value from the specified `DataRow`.
