Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

datarow filter

Status
Not open for further replies.

chronics

Programmer
Sep 10, 2006
35
GB
Hi

I just have a simple question. is it better to use a dataview with a rowfilter or to use linq as a datasource for a datagridview. When i say better i mean performance wise as im not bothered about syntax.

Thanks
 
that depends on the amount of data and how you are using it.
make it work
make it maintainable
make it fast
in that order.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
The queries arent very complex,there be a maximum of a few thousand rows. Both methods will work and are maintainable but the result of the linq query would then have to use the AsDataView() method anyway which is why im wondering if that may cause a performance drop.
 
first get it working, then check the preformance levels using a tool like dot net trace. As a general rule the bottlenecks occur when memory needs to access IO. (files, database, serialization, etc)

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top