Hi, after some research, I have come out with the following solution:
DataTable dtDeviceHistory = new DataTable();
dtDeviceHistory = (DataTable)_reportDataSources[0].Value;
if (!dtDeviceHistory.IsNullOrEmpty())
{
if (dtDeviceHistory.Rows.Count > 0)
{
DisplayReport(_reportDataSources, _unitDto);
}
}
Hope to get some feedback. Thank you.