Managing datatable rows

I have a datatable in my web application and I need to insert a new datarow into this datatable. The row must be added in a specified index and I need to shift all other rows (for example if I need to insert a row in 3th index position then all rows afther the 3th position must be shifted of one place so old 3th row will become the 4th row, old 4th will become 5th etc...).

Is there an a method in the framework to do this operation?
Thank you

Mirko

[459 byte] By [MirkoMessori] at [2007-12-28]
# 1

try DataTable.Rows.InsertAt()

NikhilRajwade at 2007-9-4 > top of Msdn Tech,.NET Development,Common Language Runtime...
# 2

I have tried it but the "InsertAt()" method give me an exception if try to save a new row into an index where another row is stored :(

I'll try to do the procedure manually with two datatable and a cycle

MirkoMessori at 2007-9-4 > top of Msdn Tech,.NET Development,Common Language Runtime...

.NET Development

Site Classified