Add("Price", "Price") '---create a new bindingsource control--- Dim bindingsource As New Binding Source '---add the items into the control--- bindingsource. Header Text = "Types" '---data bind it--- combo Box Col.
Add("Type C") '---create a combobox column--- Dim combo Box Col As New Data Grid View Combo Box Column '---set the header--- combo Box Col.
Its not permissible to have the two selected to true, but they can both be false.
A combo box cells value has to be in the items collection, otherwise a Data Error event will be fired, so that's the reason why you need to perform this step.
Hi, I am trying to validate two columns in a datagridview by comparing the e.g Hiredate and Due Date.
I need to check that only one of the two can be checked.
Its just that my UI does not respond correctly and I can't expect my users to get out of it that way. Bob "Bob" In a datagridview (vs2005, VB.net) I have two columns that are checkboxes.
Private Sub Datagrid1_Cell Validating(By Val sender As Object, By Val e As System.