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
}
ExtensionMethod.NET Home of 880 C#, Visual Basic, F# and Javascript extension methods
Determina si un DataTable Tiene DataRows.
public static bool HasRows(this DataTable source) {
return (source != null && source.Rows.Count > 0);
}
if(DataTable.HasRows()){
//your code
}