DataGridViewComboBoxColumn Usage

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
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.
Posts: 3
Last visit: Fri Oct 28, 2022 8:24 am

DataGridViewComboBoxColumn Usage

Post by chenzilong326 »

Sorry to bother you,
Someone help to see how to write Edit Clause click event?
The Add Clause and Delete Clause click events have been written,
Click a line of the form, and the information will be displayed on it
I don't know how to write the Edit Clause point event,
In addition, from the second line of the form, click the connector control type in the second line to trigger the DataGridViewComboBoxColumn type?
    25.png (27.48 KiB) Viewed 408 times
      24.png (19.33 KiB) Viewed 408 times
        (207.93 KiB) Downloaded 23 times
        Posts: 15360
        Last visit: Thu Feb 02, 2023 9:14 am
        Answers: 27
        Has voted: 4 times
        Been upvoted: 31 times

        Re: DataGridViewComboBoxColumn Usage

        Post by jvierra »

        We do not usually use the "Edit" event. Just get the "Changed" event and do whatever you need to with the data.

        I recommend reviewing the documentation on WinForms and the DataGridView control.