ExtensionMethod.NET Home of 880 C#, Visual Basic, F# and Javascript extension methods

HasRows

Determina si un DataTable Tiene DataRows.

Source

public static bool HasRows(this DataTable source) {
     return (source != null && source.Rows.Count > 0);
}

Example

if(DataTable.HasRows()){
     //your code
}

Author: UlisexXx

Submitted on: 21 nov. 2023

Language: csharp

Type: System.Data

Views: 1217