You can use DataView.
DataView dv = new DataView(yourDatatable);
dv.RowFilter = "query"; // query example = "id = 10"
More Related Contents:
- ERROR: Cannot convert method group ‘CopyToDataTable’ to non-delegate type ‘System.Data.DataTable’. Did you intend to invoke the method?
- Read SQL Table into C# DataTable
- Efficient DataTable Group By
- Export DataTable to Excel File
- How to calculate the sum of the datatable column in asp.net?
- Datatable vs Dataset
- Stored procedure return into DataSet in C# .Net
- Datatable to html Table
- How to bind crystal report to manually created DataSet
- How do I loop through rows with a data reader in C#?
- Convert Dataset to XML
- How to convert DataTable to class Object?
- How to pass values across the pages in ASP.net without using Session
- How should I inject a DbContext instance into an IHostedService?
- How to work with time zones in ASP.NET?
- Passing object in RedirectToAction
- EPPlus number format
- IIS Server & ASP.Net Core – 500.19 with error code 0x8007000d on httpplatformhandler tag
- Exception using CopyToDataTable with “new {..}” LINQ query
- jQuery Ajax calls to web service seem to be synchronous
- Connection timeout for SQL server
- Does FileStreamResult close Stream?
- How DataReader works?
- Convert IHtmlContent/TagBuilder to string in C#
- What is passing parameters to SQL and why do I need it?
- Browser detection
- How to get the output of a System.Diagnostics.Process?
- Printing from ASP.NET to a network printer
- Validating Recaptcha 2 (No CAPTCHA reCAPTCHA) in ASP.NET’s server side
- Document.Ready() is not working after PostBack