Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert rows into a datatable or datarow[]

Status
Not open for further replies.
Jun 5, 2006
28
US
I have a Datatable with 100 rows in it. (I can easily convert it into a Datarow[].) Is there anyway to insert rows in the middle of these structures. Meaning can i insert a new Datarow in between rows 35 and 36. (If there is no way to do this, are there any other data structures I can easily convert a datatable into that I can use.)

Thanks
 
Why do you care what order the data is in? Your GUI object should take care of the sorting and display of the data no matter what order it is in.

Just Add the row to your datatable and display the data in a way that allows you to sort.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top