If Typeof e.sender Is winform.RadioButton Then
' For Each c As Winform.RadioButton In e.Form.Controls("GroupBox1").children
'' c.BackColor=Color.Transparent
' Next
If e.sender.checked=True Then
' e.sender.BackColor=Color.Lime
Select Case e.sender.name
'Case "customBOMconsume","customBOMlist"
'Tables("新增BOM_Table1").DataSource = DataTables(e.sender.name)
'Tables("新增BOM_Table1").AutoSizeHeaderRow
'Tables("新增BOM_Table1").AutoSizeCols
Case "customBOMtitle"
'Dim currline As Integer
'Dim Colline As Integer
'colline=DataTables("customBOMtitle").DataCols.count
'Dim dr2 As DataRow
Dim dtb As New DataTableBuilder("BOOM")
dtb.AddDef("1", Gettype(String),250)
dtb.AddDef("2", Gettype(String),250)
dtb.AddDef("3", Gettype(String),250)
'dtb.AddDef("4", Gettype(String),250)
'dtb.AddDef("5", Gettype(String),250)
'dtb.AddDef("6", Gettype(String),250)
Tables("新增BOM_Table1").DataSource = dtb.BuildDataSource
MessageBox.Show(DataTables("customBOMtitle").DataCols.count)
'For Each itemcol As DataCol In DataTables("customBOMtitle").DataCols
'If currline <= Colline/3 Then
'dr2 =DataTables("BOOM").addnew
'dr2("1")=itemcol.Name
'currline +=1
'MessageBox.Show(1)
'ElseIf currline <= Colline/3*2 Then
'dr2 =DataTables("BOOM").find("[3] is null")
'dr2("3")=itemcol.Name
'currline +=1
'MessageBox.Show(2)
'Else
'dr2 =DataTables("BOOM").find("[5] is null")
'dr2("5")=itemcol.Name
'currline +=1
'MessageBox.Show(3)
'End If
'Next
''
End Select
End If
End If