If we want to filter some data from dataset we can use LINQ query to dataset.
here is code snippet.
var Employees= from Employees in ds.Tables["Employee"].AsEnumerable()
where Employees.Field<int>("Empid") == Convert.ToInt32(empid)
select Employees;
//Here empid is variable from which we are comparing the employee dataset.
No comments:
Post a Comment