PDA

Click to See Complete Forum and Search --> : Suggestions how to do this...


dj4uk
Jan 28th, 2004, 04:24 AM
I'm new to C# in fact this is going to be my first full application.

I need to be able to transfer the contents of an HTML table (simply copied using CTRL-C) into a datagrid (or some similar control that I could use). I'm presuming this requires work with windows clipboard so if any one could give me any useful suggestions/URLs to take a look at that would be cool.

Also the same datagrid (or similar) needs to be able to be populated by selecting a CSV file - to allow the user alternative methods of population. I'm pretty sure I can do this by loading the CSV into a dataTable which is bound to the datagrid.

Cheers

DJ

PT Exorcist
Jan 28th, 2004, 11:21 AM
use the System.Windows.Forms.Clipboard Class, its near the vb6 one(very easy to use)

dj4uk
Jan 28th, 2004, 11:22 AM
Excellent cheers - I'll have a look into that. So it sounds like you think its possible then?

DJ

PT Exorcist
Jan 28th, 2004, 11:24 AM
I dont know a flying f*** about datagrids but it looks perfectly possible to do..just dont ask me anything related with datagrids :D