how to add a new row in datatable at runtime(values from textboxes) with same object
Jump to Post
With something like this:
DataRow newRow = dataSet1.Tables["Customers"].NewRow(); newRow["CustomerID"] = "ALFKI"; newRow["CompanyName"] = "Alfreds Futterkiste"; dataSet1.Tables["Customers"].Rows.Add(newRow);
You add a dataRow to the existing dataTable and then specify what data you want to put in the columns. If you don't have columns specified like the example above you …
All 2 RepliesReply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.