Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting by group with null support
Message
From
21/09/2015 07:45:17
 
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01624841
Message ID:
01624871
Views:
34
>See you no longer need it but this should work:
loResult = loDataTable.AsEnumerable().GroupBy(Function(r) r.Field(Of System.Nullable(Of Integer))(lcPrimaryKey)).[Select](Function(g) g.First()).CopyToDataTable
This is great. Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform