Click here to Skip to main content
15,887,304 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have data table with 2 records and need to add one more record to existing data table

What I have tried:

for(int i=0;i
Posted
Updated 14-Feb-21 20:19pm

1 solution

Try:
MyDataTable.Rows.Add("Hello", 666, Math.PI);
Where the string, integer, and double values are the actual column values you need in the new row ...
 
Share this answer
 
Comments
DGKumar 15-Feb-21 2:27am    
Hi Griff
Need to add records one by one from db to same datatable
OriginalGriff 15-Feb-21 2:37am    
And what is stopping you?
Where are you stuck?
What have you tried?
What help do you need?

There is literally nothing in your question!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900