Groups | Blog | Home
all groups > dotnet general > january 2008 >

dotnet general : remove the oldest rows beyond a predefined size from a DataTable


Avi
1/31/2008 5:46:19 PM
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


Cor Ligthert[MVP]
2/1/2008 6:16:54 AM
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
AddThis Social Bookmark Button