remove the oldest rows beyond a predefined size from a DataTable

Hi all,



I would like to remove the oldest rows beyond a predefined size from a
DataTable. Is it possible to remove a bulk of rows in one shot or do I have
to loop and do a DataTable.Rows.RomoveAt(0)



Thanks,

Avi
Avi [ Do, 31 Januar 2008 16:46 ] [ ID #1920651 ]

Re: remove the oldest rows beyond a predefined size from a DataTable

Avi,

What is against looping, it is the basic way microcomputers work.

When there is one method, then you can be sure that it is looping after the
scene.

Cor
notmyfirstname [ Fr, 01 Februar 2008 06:16 ] [ ID #1921546 ]
Microsoft » microsoft.public.dotnet.general » remove the oldest rows beyond a predefined size from a DataTable

Vorheriges Thema: Deploying application got error
Nächstes Thema: What is the best way to update applications?