Simple way to convert datarow array to datatable

Category > ASP.NET || Published on : Wednesday, September 4, 2019 || Views: 4785 || Simple way to convert datarow array to datatable


Introduction

Here Pawan Kumar will explain Simple way to convert datarow array to datatable

Description

Now I will explain How to Simple way to convert datarow array to datatable

So follow the steps to learn Simple way to convert datarow array to datatable

DataTable tbl= new DataTable();
DataRow[] dr = tbl.Select("high = max(high)");

if(dr.Lenght>0)
{
DataTable tbl1= dr.CopyToDataTable();
}

 

Conclusion:

So, In this tutorial we have learned, Simple way to convert datarow array to datatable