Inserting Deleting Rows in DataView

  • Thread starter Thread starter Renuka Prasad via .NET 247
  • Start date Start date
R

Renuka Prasad via .NET 247

Hi,

I have a DataView attached to a DataTable Class. I need to insert and delete certain rows in arbitrary position using the DataView. Somewhat like InsertAt (index) RemoveAt(Index) functionality is what i am looking for. Can anybody guide me here.

Thanks
 
Just use the RowCollection of the underlying table object and call InsertAt
on it. Anything you do to the table is also 'done' the to table so just do
it to the table and you'll be good to go.

--

W.G. Ryan, eMVP

http://forums.devbuzz.com/
http://www.knowdotnet.com/williamryan.html
http://www.msmvps.com/WilliamRyan/
Renuka Prasad via .NET 247 said:
Hi,

I have a DataView attached to a DataTable Class. I need to insert and
delete certain rows in arbitrary position using the DataView. Somewhat like
InsertAt (index) RemoveAt(Index) functionality is what i am looking for. Can
anybody guide me here.
 
Back
Top