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.
Locked
chenzilong326
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
    25.png (27.48 KiB) Viewed 351 times
      24.png
      24.png (19.33 KiB) Viewed 351 times
        DemoDataGridViewComboBoxColumn2022.zip
        (207.93 KiB) Downloaded 14 times
        jvierra
        Posts: 15335
        Last visit: Sat Nov 26, 2022 5:58 pm
        Answers: 27
        Has voted: 4 times
        Been upvoted: 30 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.
        Locked