DataSet scan efficiency

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hello,

I have a dataset i need to insert new datarow in if the row is new and
doesn't exist in the dataset, other wise i will only need to update the
existing row.

for example, dataset with "ID" and "Name" fields can have a new row
added if the row's ID is not already in the dataset.

Any idea what the most efficient way (light performance) is to achieve
this task? maybe using "foreach" would do the job but i think this
wouldn't be very efficient as this operation needs to be done every
couple of seconds and requires fast execution time.

Thanks,

Maya.

.



Relevant Pages

  • Re: big transfer window
    ... > Man Utd v Liverpool, ... Very wise. ... Prev by Date: ...
    (uk.sport.football.clubs.liverpool)
  • Re: P&T Pipe Bags...
    ... A wise person avoids it. ... Prev by Date: ...
    (alt.smokers.pipes)
  • Re: RowChanged DataTable RowCollection
    ... the newly created datarow, but it is not a part of the datatable at this ... than in my opinion the row would be there. ... Prev by Date: ...
    (microsoft.public.dotnet.framework.adonet)
  • Is the U.S. funding the insurgency.
    ... given that our enemies have found a rich source of funding. ... Allah is wise. ... Prev by Date: ...
    (alt.politics.bush)
  • Re: DataColumn.Expression complex calculations
    ... What you could do is to catch an event of the DataTable when DataRow inside ... I'm trying to calculate the difference between a DateTime ... > Is there a way to integrate custom functions in this property? ... Prev by Date: ...
    (microsoft.public.dotnet.framework.adonet)