Product, version and build: PowerShell Studio 2015 Version 4.2.83
32 or 64 bit version of product: 64bit
Operating system: Win8.1 64bit
Hi,
I'm interested in the option of commiting changes to any cell inside a DataGridView without ending the edit mode.
I've found some options for C# and other languages but I was unable to make it work in PS Studio.
Thanks for help,
Thomas
DataGridView commit change immediately
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: DataGridView commit change immediately
Nevermind,
the solution is:
the solution is:
- $DGV_CurrentCellDirtyStateChanged={
- if ($DGV.IsCurrentCellDirty)
- {
- $DGV.CommitEdit([System.Windows.Forms.DataGridViewDataErrorContexts]::Commit)
- }
- }
Re: DataGridView commit change immediately
[POST MOVED TO THE POWERSHELL GUI FORUM BY MODERATOR]
Glad to know you figured it out.
I moved this post to the PowerShell GUI forums in case anyone else would like this for future reference.
Glad to know you figured it out.
I moved this post to the PowerShell GUI forums in case anyone else would like this for future reference.
DevinL
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.