Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a problem here .... I have a device which is connected on serial port. I want to populate the data received bu this device in to a grid and the export that data as an Excel file ....... One thing i want mention here that I don't want to use database. Is there any way for achiving this? Actually what happens this device sends data after every 10 seconds and now I have to display this data in grid view and when all the data has been collected I have to export it as a Excel file.

How can i do this?

Any help or guideline will be highly appreciated.

Thanks to all in advance.
Posted
Updated 27-Aug-12 4:04am
v2
Comments
[no name] 27-Aug-12 9:58am    
Sure, get the data from the serial port and display it in the grid. When all of your data has been collected then export it to an xls file. A simple google search or search on CP would guide for any and/or all of this. What exactly is the problem?
vikrantvns 27-Aug-12 10:02am    
friend iam anable to populate the grid when iam reciving the data from device see what iam doing is when ever there is data on port iam receving in a string and then tring to post in in grid but iam not abel to do so ...........can u pls give the link where i can get the guideline thanks
[no name] 27-Aug-12 10:06am    
Sure. Everything you need to know is in the documentation, http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.aspx
ZurdoDev 27-Aug-12 10:10am    
What specific part are you stuck on?
vikrantvns 27-Aug-12 10:13am    
when iam tring to post the data in cell its is not displaying what i want is that when data is posted on first row the cursur should move to second row so that next data is populated there but its not happening like that

1 solution

If you databind a grid, you can't add items to it. I suspect you want to just add your items to the Items collection of the grid, so you can add tehm as the data comes in. You have to set the selected row yourself in code, too.
 
Share this answer
 

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