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.
This topic is 1 year and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
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 589 times
      24.png
      24.png (19.33 KiB) Viewed 589 times
        DemoDataGridViewComboBoxColumn2022.zip
        (207.93 KiB) Downloaded 40 times
        jvierra
        Posts: 15439
        Last visit: Tue Nov 21, 2023 6:37 pm
        Answers: 30
        Has voted: 4 times
        Been upvoted: 33 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.
        This topic is 1 year and 5 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
        Locked