Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RowFilter and Dates
Message
From
25/05/2004 11:30:42
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00906425
Message ID:
00906961
Views:
15
Hi Tom,

>In the "real world" is it best to use RowFilter, Find or FindRows? Perhaps it is a matter of "best practice" or what your requirements are.

Ah, but you forgot one ... what about .Select()? <s>

Yes, I think a lot of it depends on your requirements. Obviously, you can't use .Find() or .FindRows() if you aren't defining Primary Keys in your DataTable (which we aren't). Personally, I typically will not use .RowFilter if all I'm trying to do is find a specific row ... I'll use .Select() instead. But, I probably use the .RowFilter for everything else. I dunno ... it depends on my mood when I'm coding. <g>

As far as which is slower or which is the "best practice", I don't really know.

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform