Skip to main content
Sign in
Home
Samples
Languages
Extensions
Documentation
Community
Overview
Visual C++
Visual C#
Visual Basic
JavaScript
Visual F#
Get started for free
Visual Studio Developer Center
>
Languages
>
Visual Basic
>
101 Visual Basic LINQ Samples
>
LINQ To DataSet Samples
LINQ to DataSet Samples
Aggregate Operators
Count - Simple
Count - Conditional
Count - Nested
Count - Grouped
Long Count Simple
Long Count Conditional
Sum - Simple
Sum - Projection
Sum - Grouped
Min - Simple
Min - Grouped
Min - Elements
Max - Simple
Max - Projection
Max - Grouped
Max - Elements
Average - Simple
Average - Projection
Average - Grouped
Aggregate - Seed
Conversion Operators
ToArray
ToList
ToDictionary
OfType
Custom Sequence Operators
Combine
DataSet Custom Operators
ToDataTable - Load existing DataTable
DataSet Loading Examples
Using CopyToDataTable
Element Operators
First - Simple
First - Condition
FirstOrDefault - Simple
ElementAt
Generation Operators
Range
Repeat
Grouping Operators
GroupBy - Simple 1
GroupBy - Simple 2
GroupBy - Simple 3
GroupBy - Nested
GroupBy - Comparer
GroupBy - Comparer, Mapped
Join Operators
Join - simple
Join with grouped results
Group Join
Joins
Join - Using Nested Loops
LINQ over TypedDataSet
TypedDataSet - Simple
TypedDataSet - Projection
TypedDataSet - Load existing DataTable
TypedDataSet - Checking for null
Miscellaneous Operators
Concat - 1
Concat - 2
EqualAllRows - 1
EqualAllRows - 2
Ordering Operators
OrderBy - Simple 1
OrderBy - Simple 2
OrderBy - Simple 3
OrderBy - Comparer
OrderByDescending - Simple 1
OrderByDescending - Simple 2
OrderByDescending - Comparer
ThenBy - Simple
ThenBy - Comparer
ThenByDescending - Simple
ThenByDescending - Comparer
Reverse
Partitioning Operators
Take - Simple
Take - Nested
Skip - Simple
Skip - Nested
TakeWhile - Simple
TakeWhile - Indexed
SkipWhile - Simple
SkipWhile - Indexed
Projection Operators
Select - Simple 1
Select - Simple 2
Select - Transformation
Select - Anonymous Types 1
Select - Anonymous Types 2
Select - Anonymous Types 3
Select - Indexed
Select - Filtered
SelectMany - Compound from 1
SelectMany - Compound from 2
SelectMany - Compound from 3
SelectMany - from Assignment
SelectMany - Multiple From
SelectMany - Indexed
Quantifiers
Any - Simple
Any - Grouped
All - Simple
All - Grouped
Contains
Query Execution
ToLookup - element selector
Immediate Execution
Query Reuse
Restriction Operators
Where - Simple 1
Where - Simple 2
Where - Simple 3
Where - Drilldown
Where - Indexed
Single - Simple
Single - with Predicate
Set Operators
DistinctRows
Distinct
UnionRows
Union
IntersectRows
Intersect
ExceptRows
Except