How can i make the Column.Item(1) be a DataGridViewComboBoxColumn?
Dim filePath As String = (My.Application.Info.DirectoryPath & "\options.xml")
Dim channelDS As New DataSet()
channelDS.ReadXml(filePath)
Try
With DataGridView1
.DataSource = channelDS
.DataMember = "channel"
.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill
.Columns.Item(2).Width = 30
.Columns.Item(2).ReadOnly = True
.Columns.Item(0).HeaderText = "A2"
.Columns.Item(1).HeaderText = "A3"
.Columns.Item(2).HeaderText = "A1"
.Columns.Item(0).DisplayIndex = 1
.Columns.Item(1).DisplayIndex = 2
.Columns.Item(2).DisplayIndex = 0
End With
Catch ex As Exception
MsgBox("A: " & ex.Message)
End Try