Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hiii i want to generate sample table view which i can maximize the raws number programmatical without the using of SQL

thanx
Posted
Updated 22-May-11 2:49am
v2

Since you don't say if this is Winforms or WPF, or web, I assume Winforms:
DataGridView myDataGridView = new DataGridView();
myDataGridView.Size = new Size(300, 200);
Controls.Add(myDataGridView);
myDataGridView.Columns.Add("First", "First Column");
myDataGridView.Columns.Add("Second", "Second Column");
myDataGridView.Rows.Add(1, "First Row, second column");
myDataGridView.Rows.Add(1, "First Row, second column");
myDataGridView.Rows.Add(2, "Second Row, second column");
myDataGridView.Rows.Add(17, new Point(120, 240));
 
Share this answer
 
Comments
Espen Harlinn 22-May-11 10:58am    
Nice effort, my 5
Al-Samman Mahmoud 23-May-11 7:12am    
thank you very very much my friend for ur help
This[^] little DataTable sample could help you out as well.
 
Share this answer
 
Comments
Espen Harlinn 22-May-11 10:57am    
Fair enough, my 5
Abhinav S 22-May-11 12:14pm    
Thank you.

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