# DataGridControl.FindRowByDisplayText method (1 of 2)

Finds the first row whose cell display text in the specified column equals the specified text. Returns InvalidRowIndex if no row is found.

```csharp
public int FindRowByDisplayText(GridColumn column, string? displayText)
```

## See Also

* class [GridColumn](../GridColumn.md)
* class [DataGridControl](../DataGridControl.md)
* namespace [Eremex.AvaloniaUI.Controls.DataGrid](../index.md)

---

# DataGridControl.FindRowByDisplayText method (2 of 2)

Finds the first row whose cell display text in the specified field equals the specified text. Returns InvalidRowIndex if no row is found.

```csharp
public int FindRowByDisplayText(string fieldName, string? displayText)
```

## See Also

* class [DataGridControl](../DataGridControl.md)
* namespace [Eremex.AvaloniaUI.Controls.DataGrid](../index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Controls.dll -->
