Dim cmbDeb As New DataGridViewComboBoxColumn cmbDeb.HeaderText = "Debit" ReDim mode(0 To total) For i = 0 To total mode(i) = dt.Rows(i)(0) If mode(i) = 1 Then SqlStr = "SELECT accountName FROM mst_Account" dt = qry.ExecuteSql(SqlStr) cmbDeb.Items.Add(dt.Rows(0).Item(0)) Else 'nothing must be inside the combobox End If Next Me.dgJP.Columns.Add(cmbDeb)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)