Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

VB.net DataGridView Add a handler for selected index change on Dynamic DataGridView ComboBox column

Hi

I use the following code to dynamically add a ComboBox column to a DataGridView.
What code do I use to handle the Selected Index Changed event?

         Dim ColumnCB As New DataGridViewComboBoxColumn
                With ColumnCB
                    .HeaderText = "Status"
                    .Width = 80
                    .Items.Add("Late")
                    .Items.Add("Sick")
                End With
Avatar of John (Yiannis) Toutountzoglou
John (Yiannis) Toutountzoglou
Flag of Greece image

Hi Murbo ..You need to Handle the Editing Control Showing Event for that Column ...

John..
Avatar of Murray Brown

ASKER

Thanks. What code do I add to do that?
ASKER CERTIFIED SOLUTION
Avatar of John (Yiannis) Toutountzoglou
John (Yiannis) Toutountzoglou
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Great answer! I appreciate the time taken.
Glad for it ...
John . .