Return a paged DataTable
Parameter validation
Because GetErrorLog() is a public method you should assume that any given parameter can be wrong so a at least basic validation should take place.
E.g assume a user of that method is passing a startRowIndex == -1 then the line pagedErrorLog.ImportRow(errorLog.Rows[i]); would throw with an IndexOutOfBoundException.
A much better way would be to validate that parameter at the beginning like so
if (startRowIndex &lt; 0)
{
    throw new ArgumentOutOfRangeException(&quot;startRowIndex&quot;);
}  


I would split that big method into several smaller ones which are having only one responsibility like
private static void FillErrorLogTable(DataTable table, string[] filePaths)
{
    foreach (string filePath in filePaths)
    {
        DataRow row = table.NewRow();
        row[&quot;fileName&quot;] = Path.GetFileName(filePath);
        row[&quot;filePath&quot;] = filePath;
        table.Rows.Add(row);
    }
}  

private static void FillPagedErrorLog(DataTable source, DataTable destination, int lowerBound, int upperBound)
{
    int sourceRowCount = source.Rows.Count;

    for (int i = lowerBound; i &lt; upperBound; i++)
    {
        if (i &gt;= sourceRowCount)
        {
            break;
        }
        destination.ImportRow(source.Rows[i]);
    }
}  

How should Rows.Count at this condition if (pagedErrorLog.Rows.Count &lt;= 0) ever be &lt; 0? That won't ever happen.
Summing up the changes with only the mentioned validation which should be extended to validate the remaining parameters as well, would lead to
public static DataTable GetErrorLog(int startRowIndex, int maximumRows, string sortExpression, string logPath)
{
    if (startRowIndex &lt; 0)
    {
        throw new ArgumentOutOfRangeException(&quot;startRowIndex&quot;);
    } 

    if (string.IsNullOrEmpty(sortExpression))
    {
        sortExpression = &quot;fileName DESC&quot;;
    }

    DataTable errorLog = GetErrorLogDataTable();

    string[] filePaths = Directory.GetFiles(logPath);

    FillErrorLogTable(errorLog, filePaths);

    DataView dataView = new DataView(errorLog);
    dataView.Sort = sortExpression;
    errorLog = dataView.ToTable();
    DataTable pagedErrorLog = errorLog.Clone();

    FillPagedErrorLog(errorLog, pagedErrorLog, startRowIndex, startRowIndex + maximumRows);

    if (pagedErrorLog.Rows.Count == 0)
    {
        return errorLog;
    }
    else
    {
        return pagedErrorLog;
    }
}  

Other than what I had mentioned, your code looks good, you are following the naming conventions and you have named your things well (except of the GetErrorLogDataTable() method which I would name Create..).