Click here to Skip to main content
15,905,679 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
C#
DataTable table = new DataTable("users");
table.Columns.Add(new DataColumn("Id", typeof(int)));
table.Columns.Add(new DataColumn("Name", typeof(string)));

table.Rows.Add(1, "abc");
table.Rows.Add(2, "ddd");
table.Rows.Add(3, "fff");
table.Rows.Add(4, "hhhd");
table.Rows.Add(5, "hkfs");
Posted
Updated 3-Sep-14 21:29pm
v2
Comments
George Jonsson 4-Sep-14 3:34am    
So how do you want to write the data to Notepad?
Directly into the editor window?
And why without a loop? Are loops evil?

i tried but i didnt get any answer... any talented programmer plz
 
Share this answer
 
VB
Id,Name,
1,abc,
2,ddd,
3,fff,
4,hhhd,
5,hkfs,



i need answer like this
with out using loop
 
Share this answer
 
v2

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