Random Rows Selection from Datatable in C#
using System.Data; //Namespace
DataTable dt = new DataTable();
var rand = new Random();
var result = dt.AsEnumerable().OrderBy(r => rand.Next());
DataRow dr1;
dr1 = result.First();
in dr1 the random row values will be there
0 comments: