Hi Folks,

Can anybody plz tell me how to add multiple rows in a datatable at runtime..I want to add the values from the application inputs not from sql.ie,from textboxes i want add the values to the datatable.

Use the DataSet.Merge() and pass the arrays of DataRow.

DataSet.Merge(rows);

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.