Easiar approach on datatable could be:
int minLavel = Convert.ToInt32(dt.Compute("min([AccountLevel])", string.Empty));
More Related Contents:
- LINQ query on a DataTable
- How to read a CSV file into a .NET Datatable
- How to select distinct rows in a datatable and store into an array
- Read SQL Table into C# DataTable
- Best way to remove duplicate entries from a data table
- How to compare 2 dataTables
- C# – Fill a combo box with a DataTable
- Convert DataTable to generic List?
- DataTable to JSON [duplicate]
- DataTable equivalent in Java [duplicate]
- Best way to check if a Data Table has a null value in it
- Get Cell Value from a DataTable in C#
- Returning DataTables in WCF/.NET
- Datatable select with multiple conditions
- Convert DataTable to List
- How to convert DataTable to class Object?
- Replacing a DataReader with a DataTable
- DataTable internal index is corrupted
- How can I convert a DataTable to an XML file in C#?
- Why can’t I do foreach (var Item in DataTable.Rows)?
- Fast work with Bitmaps in C#
- Is it possible to compile and execute new code at runtime in .NET?
- How do I implement IEnumerable
- Serialize a nullable int
- EPPlus number format
- Lock-free multi-threading is for real threading experts
- How do I determine the true pixel size of my Monitor in .NET?
- What is the purpose of AsQueryable()?
- Reading large XML documents in .net
- Printing from ASP.NET to a network printer