Click here to Skip to main content
15,914,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How retrieve the data from textfile randomly. At run time display text should be into two columns in gridview
Posted
Updated 20-Apr-12 21:34pm
v3

 
Share this answer
 
I would think a ListView control[^] should be sufficient for you.
If you want to look at more complex scenarios like a filter search etc, you can think about a DatagGridView.
 
Share this answer
 
v2
Comments
siri2012 21-Apr-12 3:14am    
How retrieve the data from textfile randomly. At run time data should be display in gridview into two columns
Abhinav S 21-Apr-12 3:19am    
Search the internet you will find tons of links on how to read a file.
See http://www.c-sharpcorner.com/uploadfile/mahesh/how-to-read-a-text-file-in-C-Sharp/, for example.
Shahin Khorshidnia 22-Apr-12 7:26am    
My +5
Abhinav S 22-Apr-12 23:56pm    
Thank you Shahin.
VJ Reddy 23-Apr-12 19:51pm    
+5

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