Public Function FindColumn(ByVal atControl As Control, ByVal colName As String) As DataGridViewColumn
For Each ctl As Control In atControl.Controls
If (TypeOf ctl Is DataGridView) Then
Dim gridView As DataGridView = DirectCast(ctl, DataGridView)
If (gridView.Columns.Contains(colName)) Then
Return gridView.Columns(colName)
Else
Return Nothing
End If
ElseIf (TypeOf atControl Is IContainerControl) OrElse (atControl.Controls.Count > 0) Then
Return Me.FindColumn(atControl, colName)
End If
Next
Return Nothing
End Function