[RESOLVED] testing code tags
Here's a sample of how to use the code tags.
Copy your code to the edit box
Code:
If e.Control.ToString() Like "System.Windows.Forms.DataGridViewComboBoxEditingControl*" Then
If DataGrid.CurrentCell.OwningColumn.Name = "colTOOLBROADTYPE" Or _
DataGrid.CurrentCell.OwningColumn.Name = "colTOOLSUBTYPE" Or _
DataGrid.CurrentCell.OwningColumn.Name = "colTOOLCVSTAG" Then
Dim myEditingControl As DataGridViewComboBoxEditingControl = TryCast(e.Control, DataGridViewComboBoxEditingControl)
If myEditingControl IsNot Nothing Then
myEditingControl.DropDownStyle = ComboBoxStyle.DropDown
ParseComboBoxDropDown(Me.DataGrid.CurrentCellAddress.X)
myEditingControl.SelectedItem = Me.DataGrid.Rows(Me.DataGrid.CurrentCellAddress.Y).Cells(Me.DataGrid.CurrentCellAddress.X).Value.ToString()
End If
End If
End If