Hello,
So I can get the datagrid to display everything I want and how I want, but just can't seem to get it to export the information. It will save a CSV in the location I tell it to, just won't display the data from the datagrid into the CSV... Attached is my PSF file. I'm really new at using Powershell Studio so assuming I'm probably missing something simple.
Let me know if anyone has any questions regarding this. (I'm pretty new powershell as well... )
Thanks
Can't get datagrid to export to CSV
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Can't get datagrid to export to CSV
When I use that it just gives me a blank CSV file unfortunately
Re: Can't get datagrid to export to CSV
Try this:
- Attachments
-
- Demo-DGVExport.psf
- (13.84 KiB) Downloaded 218 times
Re: Can't get datagrid to export to CSV
I'm going to have to play around more this tomorrow. Can't seem to get it working with that information.
But in your example, when the form loads I should load a file? I'm wanting to create a new file though. Didn't understand that part.
I'll let you know what I come across tomorrow morning when I have some more time. Thanks for the help!
But in your example, when the form loads I should load a file? I'm wanting to create a new file though. Didn't understand that part.
I'll let you know what I come across tomorrow morning when I have some more time. Thanks for the help!
Re: Can't get datagrid to export to CSV
$datagridview.rows.add("randomstuff", "morerandomstuff")jvierra wrote:How are you loading the grid?
Re: Can't get datagrid to export to CSV
I was thinking it wasn't saving somewhere that's why it wasn't working... Is there an easy example of how that is supposed to be done somewhere? Otherwise I can always search around google to see what I can find.
Thanks
Thanks