Product, version and build: Sapien Powershell Studio 2021, 5.8.194
Operating system: Windows Server 2019 Data Center
PowerShell version(s): 5.1
I feel like this should be easier than I am making it on myself.
I have a 4 column datagridview (firstName, lastName, eMail, samAccountName), which is built bound to a datasource. I have two methods of entry into this datagridview;
1. Load a CSV
2 Manual entry via a secondary form which is called by a button click.
I would like to be able to, using the secondary form, add a new row of data (or multiple) to the current datagridview. For some reason, I am having a hard time wrapping my head around how to complete this. If someone could give me a little guidance, it would be much appreciated.
thanks,
Brian
Programatically add a new row to a databound datagridview.
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.
- brianclark
- Posts: 23
- Last visit: Wed Feb 22, 2023 5:19 pm
- Alexander Riedel
- Posts: 8479
- Last visit: Thu Mar 28, 2024 9:29 am
- Been upvoted: 37 times
Re: Programatically add a new row to a databound datagridview.
[Topic moved by moderator]
Alexander Riedel
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.